aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 13:20:01 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 13:20:01 +0100
commit3cb3baa1e2ff107e96241c5c3d75b0013c684e40 (patch)
tree2e7ac1969abb66d0d7f186fa432ab9d32cb202de /src/log.c
parenta8dbd8f44f4106f054b49edc5994d9d8b4a5b9a9 (diff)
downloadmpd-3cb3baa1e2ff107e96241c5c3d75b0013c684e40.tar.gz
mpd-3cb3baa1e2ff107e96241c5c3d75b0013c684e40.tar.xz
mpd-3cb3baa1e2ff107e96241c5c3d75b0013c684e40.zip
log: don't call closelog() on !HAVE_SYSLOG
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
}