1
0
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:
Werner Koch 2004-05-05 19:33:56 +00:00
parent 30bbef1a28
commit edda971a15
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;