mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
common: logstream fix.
* common/logging.c (set_file_fd): Don't close es_stderr. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
cc12cf386b
commit
84146b3ec4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user