summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 00:19:31 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 07:37:22 +0200
commit3eed74a75c86758c519cfba60a6ba83dcb1eee1b (patch)
tree2b5931050d4973c70a4b5bbd9325120a6b5a58b2 /src/plugins/buflist
parente73bff95fa4bcc0902b65263bd47ec8bdc0c1128 (diff)
downloadweechat-3eed74a75c86758c519cfba60a6ba83dcb1eee1b.zip
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865)
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist-bar-item.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index ac3fbe062..dcfa55503 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -372,8 +372,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
snprintf (str_format_number_empty, sizeof (str_format_number_empty),
"%%-%ds", length_max_number);
- if (buflist_list_buffers[item_index])
- weechat_arraylist_free (buflist_list_buffers[item_index]);
+ weechat_arraylist_free (buflist_list_buffers[item_index]);
buflist_list_buffers[item_index] = weechat_arraylist_new (
16, 0, 1,
NULL, NULL, NULL, NULL);