Author: abartlet
Date: 2007-12-11 00:22:05 +0000 (Tue, 11 Dec 2007)
New Revision: 26386

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26386

Log:
We need to test in more than just 'interactive' mode...

Fix segfault found when running smbd without options.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/util/debug.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/debug.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/debug.c  2007-12-10 18:42:07 UTC (rev 
26385)
+++ branches/SAMBA_4_0/source/lib/util/debug.c  2007-12-11 00:22:05 UTC (rev 
26386)
@@ -137,7 +137,7 @@
                break;
 
        case DEBUG_FILE:
-               if ((*logfile) == '/') {
+               if (logfile && (*logfile) == '/') {
                        fname = strdup(logfile);
                } else {
                        asprintf(&fname, "%s/%s.log", dyn_LOGFILEBASE, 
state.prog_name);

Reply via email to