diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-10-30 12:16:31 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-10-30 23:10:54 +0100 |
commit | fd78c2f9ac0e2cea2a2b098d93439e2707984c84 (patch) | |
tree | 1b8f109c311754c1634063303d5c5a426d2a21d2 | |
parent | 23289dcb2c8e85b395b8a217d0c718a4be48034e (diff) | |
download | weechat-fd78c2f9ac0e2cea2a2b098d93439e2707984c84.zip |
core: check that buffer is not NULL in function gui_chat_printf_date_tags_internal
-rw-r--r-- | src/gui/gui-chat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 0eb3d168c..b4471d59c 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -597,6 +597,9 @@ gui_chat_printf_date_tags_internal (struct t_gui_buffer *buffer, char *modifier_data, *string, *new_string, *pos_newline; struct t_gui_line *new_line; + if (!buffer) + return; + new_line = NULL; string = NULL; modifier_data = NULL; |