aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 5f5ae0541..47419eec5 100644
--- a/src/log.c
+++ b/src/log.c
@@ -322,7 +322,9 @@ void close_log_files(void)
if (stdout_mode)
return;
+#ifdef HAVE_SYSLOG
if (out_filename == NULL)
closelog();
+#endif
}