diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:19:43 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 08:55:35 +0200 |
commit | 619b40b42ff6474a6cbeb5fe1bdeb306370895f4 (patch) | |
tree | d57c12b56834222a3421f5289e978dd41648e3f0 /src/gui/gui-chat.c | |
parent | 409a06982e2f98914433d2fb26a26af478eb756c (diff) | |
download | weechat-619b40b42ff6474a6cbeb5fe1bdeb306370895f4.zip |
core: remove check of NULL pointers before calling string_shared_free() (issue #865)
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r-- | src/gui/gui-chat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 77b29c6d1..7f1831d65 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -753,8 +753,7 @@ gui_chat_printf_datetime_tags_internal (struct t_gui_buffer *buffer, new_line->data->date = new_line->data->date_printed; new_line->data->date_usec = new_line->data->date_usec_printed; } - if (new_line->data->prefix) - string_shared_free (new_line->data->prefix); + string_shared_free (new_line->data->prefix); if (pos_prefix) { new_line->data->prefix = (char *)string_shared_get (pos_prefix); |