log: don't call closelog() on !HAVE_SYSLOG

This commit is contained in:
Max Kellermann 2009-01-03 13:20:01 +01:00
parent a8dbd8f44f
commit 3cb3baa1e2

View File

@ -322,7 +322,9 @@ void close_log_files(void)
if (stdout_mode)
return;
#ifdef HAVE_SYSLOG
if (out_filename == NULL)
closelog();
#endif
}