From 7695f3d87b33c7e5b4c19e4b65f53bfd2e4a0912 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sun, 27 Sep 2015 01:24:14 -0700 Subject: [PATCH] common: fix logic for internal_log_end --- common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log.c b/common/log.c index 97053178..e196021a 100644 --- a/common/log.c +++ b/common/log.c @@ -186,7 +186,7 @@ internal_log_end(struct log_config *l_cfg) /* closing log file */ log_message(LOG_LEVEL_ALWAYS, "shutting down log subsystem..."); - if (0 > l_cfg->fd) + if (-1 != l_cfg->fd) { /* closing logfile... */ g_file_close(l_cfg->fd);