diff options
author | Werner Koch <[email protected]> | 2004-05-05 19:33:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-05-05 19:33:56 +0000 |
commit | edda971a15c98194bba283786d3e486e8f5839c5 (patch) | |
tree | 2ea37d2d30d0545746e818e0f040528b9ed3a4c7 /jnlib/logging.c | |
parent | * gpg-agent.c: Remove help texts for options lile --lc-ctype. (diff) | |
download | gnupg-edda971a15c98194bba283786d3e486e8f5839c5.tar.gz gnupg-edda971a15c98194bba283786d3e486e8f5839c5.zip |
(log_set_file): Oops, don't close if LOGSTREAM is NULL.
Diffstat (limited to 'jnlib/logging.c')
-rw-r--r-- | jnlib/logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jnlib/logging.c b/jnlib/logging.c index 7397ddd30..c75efaf85 100644 --- a/jnlib/logging.c +++ b/jnlib/logging.c @@ -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; |