summaryrefslogtreecommitdiff
path: root/source4/lib/util/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/util/debug.c')
-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);