[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18026 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18026 - gnunet/src/util |
Date: |
Sat, 5 Nov 2011 19:36:38 +0100 |
Author: grothoff
Date: 2011-11-05 19:36:38 +0100 (Sat, 05 Nov 2011)
New Revision: 18026
Modified:
gnunet/src/util/common_logging.c
gnunet/src/util/test_common_logging_runtime_loglevels.c
Log:
treat empty string as NULL
Modified: gnunet/src/util/common_logging.c
===================================================================
--- gnunet/src/util/common_logging.c 2011-11-05 17:53:16 UTC (rev 18025)
+++ gnunet/src/util/common_logging.c 2011-11-05 18:36:38 UTC (rev 18026)
@@ -546,7 +546,8 @@
component_nopid = GNUNET_strdup (comp);
env_logfile = getenv ("GNUNET_FORCE_LOGFILE");
- if (env_logfile != NULL)
+ if ( (env_logfile != NULL) &&
+ (strlen (env_logfile) > 0) )
logfile = env_logfile;
if (logfile == NULL)
Modified: gnunet/src/util/test_common_logging_runtime_loglevels.c
===================================================================
--- gnunet/src/util/test_common_logging_runtime_loglevels.c 2011-11-05
17:53:16 UTC (rev 18025)
+++ gnunet/src/util/test_common_logging_runtime_loglevels.c 2011-11-05
18:36:38 UTC (rev 18026)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C) 2008 Christian Grothoff (and other contributing authors)
+ (C) 2011 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18026 - gnunet/src/util,
gnunet <=