diff options
-rw-r--r-- | src/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -284,6 +284,10 @@ done: */ void shutdown_logging (void) { + if (!logging_initialized) { + return; + } + if (config.logf_name) { close_log_file (); } else if (config.syslog) { |