From b8a40936071fae08f17a97506da6a5d23015bf41 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 11 Dec 2007 00:23:08 +0100 Subject: r26387: Merge logfile segfault into alpha2 branch. Andrew Bartlett (This used to be commit a6d1477ab97c5b93fad5502868bf324c31c75aa5) --- source4/lib/util/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') 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