summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-25 14:06:46 +0100
committerSébastien Helleu <flashcode@flashtux.org>2017-03-25 14:06:46 +0100
commitd4c27aa7e2cdd6b8d550599cedc1c79ead50c673 (patch)
tree5a1adb310a58902d483fd4c6ea045decb0999bb4 /src
parentf15ea72da3891de90e3f634202a6ca0faa00088a (diff)
downloadweechat-d4c27aa7e2cdd6b8d550599cedc1c79ead50c673.zip
logger: check that logger buffer pointer is not NULL in function "logger_buffer_free"
Diffstat (limited to 'src')
-rw-r--r--src/plugins/logger/logger-buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/logger/logger-buffer.c b/src/plugins/logger/logger-buffer.c
index e582d1dd3..3de6b1ac2 100644
--- a/src/plugins/logger/logger-buffer.c
+++ b/src/plugins/logger/logger-buffer.c
@@ -168,6 +168,9 @@ logger_buffer_free (struct t_logger_buffer *logger_buffer)
struct t_logger_buffer *new_logger_buffers;
struct t_gui_buffer *ptr_buffer;
+ if (!logger_buffer)
+ return;
+
ptr_buffer = logger_buffer->buffer;
/* remove logger buffer */