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:
parent
60c8e5b915
commit
b8a4093607
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user