Skip to content

Commit

Permalink
Wrap macro arguments in parentheses
Browse files Browse the repository at this point in the history
Found by clang-tidy.
  • Loading branch information
mptre committed Sep 11, 2017
1 parent 7d0a568 commit adbb33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "compat.h"

#define tty_putp(capability, fatal) do { \
if (tputs(capability, 1, tty_putc) == ERR && fatal) \
if (tputs((capability), 1, tty_putc) == ERR && (fatal)) \
errx(1, #capability ": unknown terminfo capability"); \
} while (0)

Expand Down

0 comments on commit adbb33c

Please sign in to comment.