1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

core: add parentheses around tests in conditions

This commit is contained in:
Sébastien Helleu
2014-05-08 10:51:26 +02:00
parent cc03a85744
commit 37200b46e8
+2 -3
View File
@@ -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;