diff options
-rw-r--r-- | src/plugins/logger/logger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index 5f6979a27..626ca7056 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -679,7 +679,8 @@ logger_print_cb (void *data, struct t_gui_buffer *buffer, time_t date, ptr_logger_buffer = logger_buffer_search (buffer); if (ptr_logger_buffer && ptr_logger_buffer->log_filename - && ptr_logger_buffer->log_enabled) + && ptr_logger_buffer->log_enabled + && (date > 0)) { date_tmp = localtime (&date); buf_time[0] = '\0'; |