diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:05:34 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 08:53:22 +0200 |
commit | f11c7c1bf46d494a5a0df616ed0dcc11c64505e1 (patch) | |
tree | 072da21e69168e3f90605f4ba009e7f665189b35 /src/core/core-completion.c | |
parent | 0b2d9bcb9b04b7e7ac3c2f626422392383575d2b (diff) | |
download | weechat-f11c7c1bf46d494a5a0df616ed0dcc11c64505e1.zip |
core: remove check of NULL pointers before calling hashtable_free() (issue #865)
Diffstat (limited to 'src/core/core-completion.c')
-rw-r--r-- | src/core/core-completion.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/core-completion.c b/src/core/core-completion.c index 1f00ecdee..21cb25e60 100644 --- a/src/core/core-completion.c +++ b/src/core/core-completion.c @@ -1317,8 +1317,7 @@ completion_list_add_plugins_installed_cb (const void *pointer, void *data, hashtable_set (options, "directory", "data"); plugin_path = string_eval_path_home (CONFIG_STRING(config_plugin_path), NULL, NULL, options); - if (options) - hashtable_free (options); + hashtable_free (options); if (plugin_path) { dir_exec_on_files (plugin_path, 1, 0, |