From 1dd1c2796aef14ece4137ae907f1a3da72e2c6c9 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 10 Jan 2010 19:24:23 +0100 Subject: log: shortcut return in shutdown_logging() if logging_initialized == false This does for instance happen at startup when logging has not yet been set up. Michael --- src/log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/log.c b/src/log.c index b78e568..39a4bac 100644 --- a/src/log.c +++ b/src/log.c @@ -284,6 +284,10 @@ done: */ void shutdown_logging (void) { + if (!logging_initialized) { + return; + } + if (config.logf_name) { close_log_file (); } else if (config.syslog) { -- cgit v1.2.3