diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-05 18:36:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-05 18:36:38 +0000 |
commit | 6fb29176d8c099607100c1261328c9ea68a744db (patch) | |
tree | 9e999f98490e2c55501950ac00724d6bb52ff5f1 /src/util/common_logging.c | |
parent | b730f77294aaaff4761e42804deda8c22caf4771 (diff) | |
download | gnunet-6fb29176d8c099607100c1261328c9ea68a744db.tar.gz gnunet-6fb29176d8c099607100c1261328c9ea68a744db.zip |
treat empty string as NULL
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r-- | src/util/common_logging.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c index d564530cc..101f2fd9f 100644 --- a/src/util/common_logging.c +++ b/src/util/common_logging.c | |||
@@ -546,7 +546,8 @@ GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile) | |||
546 | component_nopid = GNUNET_strdup (comp); | 546 | component_nopid = GNUNET_strdup (comp); |
547 | 547 | ||
548 | env_logfile = getenv ("GNUNET_FORCE_LOGFILE"); | 548 | env_logfile = getenv ("GNUNET_FORCE_LOGFILE"); |
549 | if (env_logfile != NULL) | 549 | if ( (env_logfile != NULL) && |
550 | (strlen (env_logfile) > 0) ) | ||
550 | logfile = env_logfile; | 551 | logfile = env_logfile; |
551 | 552 | ||
552 | if (logfile == NULL) | 553 | if (logfile == NULL) |