From 3057d846d97a4b4bcab4c94b52d83b19bb9abcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 19:09:11 +0200 Subject: core: remove check of NULL pointers before calling string_free_split() (issue #865) --- src/gui/gui-color.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/gui-color.c') 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 (""); -- cgit v1.2.3