From 3eed74a75c86758c519cfba60a6ba83dcb1eee1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 00:19:31 +0200 Subject: plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865) --- src/plugins/fset/fset-command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/fset') diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index ec0f5e25d..7e60995ac 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -567,8 +567,7 @@ fset_command_run_set_cb (const void *pointer, void *data, /* check condition to trigger the fset buffer */ if (condition_ok) { - if (old_options) - weechat_arraylist_free (old_options); + weechat_arraylist_free (old_options); free (old_max_length); free (old_filter); -- cgit v1.2.3