-fix
authorChristian Grothoff <christian@grothoff.org>
Sat, 23 Jun 2012 18:50:13 +0000 (18:50 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 23 Jun 2012 18:50:13 +0000 (18:50 +0000)
src/util/common_logging.c

index 08aca02efac0bdec19cbf28a495b96c11e0ca7db..ff11c777733d57046894f35142040ddffd58729d 100644 (file)
@@ -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))