diff options
author | NIIBE Yutaka <[email protected]> | 2017-07-20 07:37:56 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-07-20 07:37:56 +0000 |
commit | 84146b3ec44943f06c66a603de19094b930ad446 (patch) | |
tree | b60fda2cc400180a454933ee21d64964a53a09a9 | |
parent | dnsmngr: Fix use of CPP. (diff) | |
download | gnupg-84146b3ec44943f06c66a603de19094b930ad446.tar.gz gnupg-84146b3ec44943f06c66a603de19094b930ad446.zip |
common: logstream fix.
* common/logging.c (set_file_fd): Don't close es_stderr.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/logging.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/logging.c b/common/logging.c index bc5f72b35..c4eaca411 100644 --- a/common/logging.c +++ b/common/logging.c @@ -472,7 +472,8 @@ set_file_fd (const char *name, int fd) /* Close an open log stream. */ if (logstream) { - es_fclose (logstream); + if (logstream != es_stderr) + es_fclose (logstream); logstream = NULL; } |