diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-25 14:06:46 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-25 14:06:46 +0100 |
commit | d4c27aa7e2cdd6b8d550599cedc1c79ead50c673 (patch) | |
tree | 5a1adb310a58902d483fd4c6ea045decb0999bb4 /src | |
parent | f15ea72da3891de90e3f634202a6ca0faa00088a (diff) | |
download | weechat-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.c | 3 |
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 */ |