common: fix logic for internal_log_end

ulab-next-nosound
Jay Sorg 9 years ago
parent c0ef543291
commit 7695f3d87b

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

Loading…
Cancel
Save