mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +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>
|
2004-04-30 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* logging.c (log_set_file): Make sure the log stream will be
|
* 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;
|
force_prefixes = 1;
|
||||||
/* On success close the old logstream right now, so that we are
|
/* On success close the old logstream right now, so that we are
|
||||||
really sure it has been closed. */
|
really sure it has been closed. */
|
||||||
if (fp)
|
if (fp && logstream)
|
||||||
{
|
{
|
||||||
fclose (logstream);
|
fclose (logstream);
|
||||||
logstream = NULL;
|
logstream = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user