From edda971a15c98194bba283786d3e486e8f5839c5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 5 May 2004 19:33:56 +0000 Subject: (log_set_file): Oops, don't close if LOGSTREAM is NULL. --- jnlib/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jnlib/logging.c') 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; -- cgit