]> jfr.im git - irc/weechat/weechat.git/commitdiff
core: check that buffer is not NULL in function gui_chat_printf_date_tags_internal
authorSébastien Helleu <redacted>
Mon, 30 Oct 2023 11:16:31 +0000 (12:16 +0100)
committerSébastien Helleu <redacted>
Mon, 30 Oct 2023 22:10:54 +0000 (23:10 +0100)
src/gui/gui-chat.c

index 0eb3d168c85ebad94b668ccf1a836e5ff34208b0..b4471d59c69f34134ea7bc142e650ddf10bcadf6 100644 (file)
@@ -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;