mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
(log_set_file): Oops, don't close if LOGSTREAM is NULL.
This commit is contained in:
parent
30bbef1a28
commit
edda971a15
@ -1,3 +1,7 @@
|
||||
2004-05-05 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* logging.c (log_set_file): Oops, don't close if LOGSTREAM is NULL.
|
||||
|
||||
2004-04-30 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* logging.c (log_set_file): Make sure the log stream will be
|
||||
|
@ -260,7 +260,7 @@ log_set_file (const char *name)
|
||||
force_prefixes = 1;
|
||||
/* On success close the old logstream right now, so that we are
|
||||
really sure it has been closed. */
|
||||
if (fp)
|
||||
if (fp && logstream)
|
||||
{
|
||||
fclose (logstream);
|
||||
logstream = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user