From 2ee71c769924256985febae6da0a1fec42a3b1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 30 Oct 2023 12:16:31 +0100 Subject: [PATCH] core: check that buffer is not NULL in function gui_chat_printf_date_tags_internal --- src/gui/gui-chat.c | 3 +++ 1 file changed, 3 insertions(+) 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;