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:
+2
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user