1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +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
@@ -981,8 +981,7 @@ end:
string_modified = (ptr_string && (strcmp (ptr_string, string) != 0)) ?
strdup (ptr_string) : NULL;
if (tags)
weechat_string_free_split (tags);
weechat_string_free_split (tags);
free (string_no_color);
TRIGGER_CALLBACK_CB_END(string_modified);
@@ -1120,8 +1119,7 @@ trigger_callback_line_cb (const void *pointer, void *data,
}
end:
if (tags)
weechat_string_free_split (tags);
weechat_string_free_split (tags);
TRIGGER_CALLBACK_CB_END(hashtable);
}