diff options
-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; |