diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:07:02 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 08:53:22 +0200 |
commit | 9a5a1fb300d30630f62cb4707ee6be6937f3467e (patch) | |
tree | 3eb560f6c64641ba3ae22d059ffbb020b0451daf /src/plugins/plugin-script-api.c | |
parent | f11c7c1bf46d494a5a0df616ed0dcc11c64505e1 (diff) | |
download | weechat-9a5a1fb300d30630f62cb4707ee6be6937f3467e.zip |
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865)
Diffstat (limited to 'src/plugins/plugin-script-api.c')
-rw-r--r-- | src/plugins/plugin-script-api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/plugin-script-api.c b/src/plugins/plugin-script-api.c index 9c652ee95..3f1450eac 100644 --- a/src/plugins/plugin-script-api.c +++ b/src/plugins/plugin-script-api.c @@ -72,8 +72,7 @@ plugin_script_api_string_match_list (struct t_weechat_plugin *weechat_plugin, (const char **)list_masks, case_sensitive); - if (list_masks) - weechat_string_free_split (list_masks); + weechat_string_free_split (list_masks); return match; } |