summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-10-30 12:16:31 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-10-30 23:10:54 +0100
commitfd78c2f9ac0e2cea2a2b098d93439e2707984c84 (patch)
tree1b8f109c311754c1634063303d5c5a426d2a21d2
parent23289dcb2c8e85b395b8a217d0c718a4be48034e (diff)
downloadweechat-fd78c2f9ac0e2cea2a2b098d93439e2707984c84.zip
core: check that buffer is not NULL in function gui_chat_printf_date_tags_internal
-rw-r--r--src/gui/gui-chat.c3
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;