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) {