1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r26387: Merge logfile segfault into alpha2 branch.

Andrew Bartlett
(This used to be commit a6d1477ab9)
This commit is contained in:
Andrew Bartlett 2007-12-11 00:23:08 +01:00 committed by Stefan Metzmacher
parent 60c8e5b915
commit b8a4093607

View File

@ -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);