summaryrefslogtreecommitdiff
path: root/src/gui/gui-color.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-color.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-color.c')
-rw-r--r--src/gui/gui-color.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c
index 1411f8a37..689270628 100644
--- a/src/gui/gui-color.c
+++ b/src/gui/gui-color.c
@@ -1183,8 +1183,7 @@ gui_color_decode_ansi_cb (void *data, const char *text)
}
end:
- if (items)
- string_free_split (items);
+ string_free_split (items);
free (text2);
return (output) ? output : strdup ("");