From: Christian Grothoff Date: Sat, 23 Jun 2012 18:50:13 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~12867 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce0a88b825f63e418e034a1bdfc377e91da5e770;p=oweals%2Fgnunet.git -fix --- 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))