diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 00:19:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 07:37:22 +0200 |
commit | 3eed74a75c86758c519cfba60a6ba83dcb1eee1b (patch) | |
tree | 2b5931050d4973c70a4b5bbd9325120a6b5a58b2 /src/plugins/fset/fset-command.c | |
parent | e73bff95fa4bcc0902b65263bd47ec8bdc0c1128 (diff) | |
download | weechat-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.c | 3 |
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); |