samba-cvs.cvs
[Top] [All Lists]

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

Subject: svn commit: samba r26387 - in branches/SAMBA_4_0_RELEASE/source/lib/util: .
From:
Date: Tue, 11 Dec 2007 00:23:09 +0000 GMT
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);

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r26387 - in branches/SAMBA_4_0_RELEASE/source/lib/util: ., abartlet <=