diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:01:56 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 08:53:22 +0200 |
commit | 0b2d9bcb9b04b7e7ac3c2f626422392383575d2b (patch) | |
tree | 177e487efc30717415402ba969b246de3f88b28d /src/plugins/irc/irc-sasl.c | |
parent | 1ad0b4b6699df50e0cc6a3c5d62ce3ac1f77440c (diff) | |
download | weechat-0b2d9bcb9b04b7e7ac3c2f626422392383575d2b.zip |
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865)
Diffstat (limited to 'src/plugins/irc/irc-sasl.c')
-rw-r--r-- | src/plugins/irc/irc-sasl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-sasl.c b/src/plugins/irc/irc-sasl.c index 6c5343fe2..75f7e252c 100644 --- a/src/plugins/irc/irc-sasl.c +++ b/src/plugins/irc/irc-sasl.c @@ -473,8 +473,7 @@ irc_sasl_get_key_content (const char *sasl_key, char **sasl_error) if (options) weechat_hashtable_set (options, "directory", "config"); key_path = weechat_string_eval_path_home (sasl_key, NULL, NULL, options); - if (options) - weechat_hashtable_free (options); + weechat_hashtable_free (options); if (key_path) content = weechat_file_get_content (key_path); |