summaryrefslogtreecommitdiff
path: root/src/plugins/fset/fset-command.c
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/fset/fset-command.c
parente73bff95fa4bcc0902b65263bd47ec8bdc0c1128 (diff)
downloadweechat-3eed74a75c86758c519cfba60a6ba83dcb1eee1b.zip
plugins: remove check of NULL pointers before calling weechat_arraylist_free() (issue #865)
Diffstat (limited to 'src/plugins/fset/fset-command.c')
-rw-r--r--src/plugins/fset/fset-command.c3
1 files changed, 1 insertions, 2 deletions
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);