From ce0a88b825f63e418e034a1bdfc377e91da5e770 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 23 Jun 2012 18:50:13 +0000 Subject: [PATCH] -fix --- src/util/common_logging.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/common_logging.c b/src/util/common_logging.c index 08aca02ef..ff11c7777 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c @@ -337,6 +337,8 @@ setup_log_file (const struct tm *tm) int dup_return; FILE *altlog; + if (NULL == log_file_name) + return GNUNET_SYSERR; if (0 == strftime (fn, sizeof (fn), log_file_name, tm)) return GNUNET_SYSERR; if (0 == strcmp (fn, last_fn)) -- 2.25.1