1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

plugins: remove check of NULL pointers before calling weechat_config_option_free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 19:23:22 +02:00
parent 619b40b42f
commit 561dd92d8e
7 changed files with 11 additions and 19 deletions
+1 -2
View File
@@ -1230,8 +1230,7 @@ trigger_free (struct t_trigger *trigger)
free (trigger->name);
for (i = 0; i < TRIGGER_NUM_OPTIONS; i++)
{
if (trigger->options[i])
weechat_config_option_free (trigger->options[i]);
weechat_config_option_free (trigger->options[i]);
}
weechat_string_free_split (trigger->commands);