1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

core: remove check of NULL pointers before calling string_free_split() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 19:09:11 +02:00
parent 9a5a1fb300
commit 3057d846d9
21 changed files with 36 additions and 72 deletions
+4 -8
View File
@@ -1908,10 +1908,8 @@ gui_buffer_add_highlight_words (struct t_gui_buffer *buffer,
weelist_free (list);
if (current_words)
string_free_split (current_words);
if (add_words)
string_free_split (add_words);
string_free_split (current_words);
string_free_split (add_words);
}
/*
@@ -1964,10 +1962,8 @@ gui_buffer_remove_highlight_words (struct t_gui_buffer *buffer,
weelist_free (list);
if (current_words)
string_free_split (current_words);
if (remove_words)
string_free_split (remove_words);
string_free_split (current_words);
string_free_split (remove_words);
}
/*