diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-12-11 00:23:08 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:59:59 +0100 |
commit | b8a40936071fae08f17a97506da6a5d23015bf41 (patch) | |
tree | 13a500b58720b7df6ccfc0f1c00299f483d666af | |
parent | 60c8e5b9157a9413787f1bf0116d3d6da1bed894 (diff) | |
download | samba-b8a40936071fae08f17a97506da6a5d23015bf41.tar.gz samba-b8a40936071fae08f17a97506da6a5d23015bf41.tar.bz2 samba-b8a40936071fae08f17a97506da6a5d23015bf41.zip |
r26387: Merge logfile segfault into alpha2 branch.
Andrew Bartlett
(This used to be commit a6d1477ab97c5b93fad5502868bf324c31c75aa5)
-rw-r--r-- | source4/lib/util/debug.c | 2 |
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); |