1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

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

This commit is contained in:
Sébastien Helleu
2024-04-25 19:07:02 +02:00
parent f11c7c1bf4
commit 9a5a1fb300
32 changed files with 65 additions and 135 deletions
+2 -4
View File
@@ -456,8 +456,7 @@ irc_batch_process_multiline (struct t_irc_server *server,
end:
weechat_hashtable_free (hash_tags);
if (list_messages)
weechat_string_free_split (list_messages);
weechat_string_free_split (list_messages);
return weechat_string_dyn_free (result, 0);
}
@@ -500,8 +499,7 @@ irc_batch_modifier_cb (const void *pointer, void *data,
result = irc_batch_process_multiline (ptr_server, string, items[2]);
}
}
if (items)
weechat_string_free_split (items);
weechat_string_free_split (items);
return (result) ? result : strdup (string);
}