svn commit: samba r26387 - in branches/SAMBA_4_0_RELEASE/source/lib/util: .

abartlet at samba.org abartlet at samba.org
Tue Dec 11 00:23:09 GMT 2007


Author: abartlet
Date: 2007-12-11 00:23:08 +0000 (Tue, 11 Dec 2007)
New Revision: 26387

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

Log:
Merge logfile segfault into alpha2 branch.

Andrew Bartlett

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


Changeset:
Modified: branches/SAMBA_4_0_RELEASE/source/lib/util/debug.c
===================================================================
--- branches/SAMBA_4_0_RELEASE/source/lib/util/debug.c	2007-12-11 00:22:05 UTC (rev 26386)
+++ branches/SAMBA_4_0_RELEASE/source/lib/util/debug.c	2007-12-11 00:23:08 UTC (rev 26387)
@@ -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);



More information about the samba-cvs mailing list