diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2015-09-27 01:24:14 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2015-09-27 01:24:14 -0700 |
commit | 7695f3d87b33c7e5b4c19e4b65f53bfd2e4a0912 (patch) | |
tree | 78241f5854a796e4be789ed33838af34ba5694fd /common/log.c | |
parent | c0ef54329157c463059f6f25456a91772ce1c999 (diff) | |
download | xrdp-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.c | 2 |
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); |