summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-05-08 10:51:26 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-05-08 10:51:26 +0200
commit37200b46e8ffab1f9487c48c1750d72776ecb0a3 (patch)
tree829eca0c8d31618474d3ada13253a38a1935a8ac /src
parentcc03a85744ccb5fcae78b98b94bccb29b7bec929 (diff)
downloadweechat-37200b46e8ffab1f9487c48c1750d72776ecb0a3.zip
core: add parentheses around tests in conditions
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-line.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c
index ad0647200..cc27c64a9 100644
--- a/src/gui/gui-line.c
+++ b/src/gui/gui-line.c
@@ -614,14 +614,13 @@ gui_line_match_tags (struct t_gui_line_data *line_data,
tag_negated = 0;
/* check if tag is negated (prefixed with a '!') */
- if (tags_array[i][j][0] == '!' && tags_array[i][j][1])
+ if ((tags_array[i][j][0] == '!') && tags_array[i][j][1])
tag_negated = 1;
for (k = 0; k < line_data->tags_count; k++)
{
if (string_match (line_data->tags_array[k],
- tag_negated ?
- tags_array[i][j] + 1 : tags_array[i][j],
+ (tag_negated) ? tags_array[i][j] + 1 : tags_array[i][j],
0))
{
tag_found = 1;