common: fix logic for internal_log_end

This commit is contained in:
Jay Sorg 2015-09-27 01:24:14 -07:00
parent c0ef543291
commit 7695f3d87b
1 changed files with 1 additions and 1 deletions

View File

@ -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);