summaryrefslogtreecommitdiff
path: root/src/gui/gui-chat.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-10-31 18:19:53 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-10-31 18:19:53 +0100
commit90589b2d717cff5da6314ed38876e2517f038c22 (patch)
treeaa7816ad93707a386ef2195aeb90723050807f40 /src/gui/gui-chat.c
parent911f90e792f22989c5b41970def0302fa806d68b (diff)
downloadweechat-90589b2d717cff5da6314ed38876e2517f038c22.zip
Add extra checks on some pointers
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r--src/gui/gui-chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c
index a14d9255a..c2568271a 100644
--- a/src/gui/gui-chat.c
+++ b/src/gui/gui-chat.c
@@ -581,7 +581,7 @@ gui_chat_printf_date_tags (struct t_gui_buffer *buffer, time_t date,
tags, pos_prefix, ptr_msg);
if (ptr_line)
{
- if (buffer->print_hooks_enabled)
+ if (buffer && buffer->print_hooks_enabled)
hook_print_exec (buffer, ptr_line);
if (ptr_line->data->displayed)
at_least_one_message_printed = 1;