diff options
-rw-r--r-- | src/common/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c index 180c08a9f..d288d3f17 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -307,9 +307,10 @@ static void close_log(logfile_t *victim) fclose(victim->file); } else if (victim->is_syslog) { #ifdef HAVE_SYSLOG_H - if (--syslog_count == 0) + if (--syslog_count == 0) { /* There are no other syslogs; close the logging facility. */ closelog(); + } #endif } } |