summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-12-11 00:22:05 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:49:20 +0100
commit99930fe4e9c4665b06a41f4acc4c9127a2214681 (patch)
tree135d8074622c653ee479a1e45ced90acf91fb934
parent3da665e9ac324320fed68a21163fffdf4bd3df89 (diff)
downloadsamba-99930fe4e9c4665b06a41f4acc4c9127a2214681.tar.gz
samba-99930fe4e9c4665b06a41f4acc4c9127a2214681.tar.bz2
samba-99930fe4e9c4665b06a41f4acc4c9127a2214681.zip
r26386: We need to test in more than just 'interactive' mode...
Fix segfault found when running smbd without options. Andrew Bartlett (This used to be commit 880dfeadae41be5f0140ac07afb8680fc11f6ebf)
-rw-r--r--source4/lib/util/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/util/debug.c b/source4/lib/util/debug.c
index 070cdee7d5..5c1abf5039 100644
--- a/source4/lib/util/debug.c
+++ b/source4/lib/util/debug.c
@@ -137,7 +137,7 @@ _PUBLIC_ void reopen_logs(void)
break;
case DEBUG_FILE:
- if ((*logfile) == '/') {
+ if (logfile && (*logfile) == '/') {
fname = strdup(logfile);
} else {
asprintf(&fname, "%s/%s.log", dyn_LOGFILEBASE, state.prog_name);