mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
tests: add missing braces around if/else in macro WEE_NICK_STRDUP_FOR_COLOR (issue #1565)
This commit is contained in:
@@ -55,9 +55,13 @@ extern char *gui_nick_strdup_for_color (const char *nickname);
|
||||
#define WEE_NICK_STRDUP_FOR_COLOR(__result, __nickname) \
|
||||
nick = gui_nick_strdup_for_color (__nickname); \
|
||||
if (__result) \
|
||||
{ \
|
||||
STRCMP_EQUAL(__result, nick); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
POINTERS_EQUAL(NULL, nick); \
|
||||
} \
|
||||
if (nick) \
|
||||
free (nick);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user