diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-23 18:50:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-23 18:50:13 +0000 |
commit | ce0a88b825f63e418e034a1bdfc377e91da5e770 (patch) | |
tree | 02398cf4043853e0b0d79796eafa15c586827f58 /src/util/common_logging.c | |
parent | 4876301fb85d072bc54a67e077268616173f0fc5 (diff) | |
download | gnunet-ce0a88b825f63e418e034a1bdfc377e91da5e770.tar.gz gnunet-ce0a88b825f63e418e034a1bdfc377e91da5e770.zip |
-fix
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r-- | src/util/common_logging.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
337 | int dup_return; | 337 | int dup_return; |
338 | FILE *altlog; | 338 | FILE *altlog; |
339 | 339 | ||
340 | if (NULL == log_file_name) | ||
341 | return GNUNET_SYSERR; | ||
340 | if (0 == strftime (fn, sizeof (fn), log_file_name, tm)) | 342 | if (0 == strftime (fn, sizeof (fn), log_file_name, tm)) |
341 | return GNUNET_SYSERR; | 343 | return GNUNET_SYSERR; |
342 | if (0 == strcmp (fn, last_fn)) | 344 | if (0 == strcmp (fn, last_fn)) |