From f11c7c1bf46d494a5a0df616ed0dcc11c64505e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 19:05:34 +0200 Subject: core: remove check of NULL pointers before calling hashtable_free() (issue #865) --- src/core/core-completion.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/core-completion.c') 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, -- cgit v1.2.3