summaryrefslogtreecommitdiff
path: root/src/gui/gui-nick.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:09:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 08:53:22 +0200
commit3057d846d97a4b4bcab4c94b52d83b19bb9abcab (patch)
tree0aea1670a35b93dd3830cfc9ad4ced7faa2de603 /src/gui/gui-nick.c
parent9a5a1fb300d30630f62cb4707ee6be6937f3467e (diff)
downloadweechat-3057d846d97a4b4bcab4c94b52d83b19bb9abcab.zip
core: remove check of NULL pointers before calling string_free_split() (issue #865)
Diffstat (limited to 'src/gui/gui-nick.c')
-rw-r--r--src/gui/gui-nick.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui-nick.c b/src/gui/gui-nick.c
index f278904c9..5c71f26bf 100644
--- a/src/gui/gui-nick.c
+++ b/src/gui/gui-nick.c
@@ -324,8 +324,7 @@ gui_nick_find_color_name (const char *nickname, int case_range,
end:
result = strdup ((ptr_result) ? ptr_result : default_color);
- if (list_colors)
- string_free_split (list_colors);
+ string_free_split (list_colors);
free (nickname2);
free (nickname3);
return result;