summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/log.c4
1 files changed, 4 insertions, 0 deletions
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) {