summaryrefslogtreecommitdiffstats
path: root/common/log.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2015-09-27 01:24:14 -0700
committerJay Sorg <jay.sorg@gmail.com>2015-09-27 01:24:14 -0700
commit7695f3d87b33c7e5b4c19e4b65f53bfd2e4a0912 (patch)
tree78241f5854a796e4be789ed33838af34ba5694fd /common/log.c
parentc0ef54329157c463059f6f25456a91772ce1c999 (diff)
downloadxrdp-proprietary-7695f3d87b33c7e5b4c19e4b65f53bfd2e4a0912.tar.gz
xrdp-proprietary-7695f3d87b33c7e5b4c19e4b65f53bfd2e4a0912.zip
common: fix logic for internal_log_end
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c2
1 files changed, 1 insertions, 1 deletions
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);