From 99930fe4e9c4665b06a41f4acc4c9127a2214681 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 11 Dec 2007 00:22:05 +0100 Subject: 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) --- source4/lib/util/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/util/debug.c') 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); -- cgit