svn commit: samba r25630 - in branches/SAMBA_4_0: . source/lib/ldb/common

jelmer at samba.org jelmer at samba.org
Sun Oct 14 15:12:23 GMT 2007


Author: jelmer
Date: 2007-10-14 15:12:21 +0000 (Sun, 14 Oct 2007)
New Revision: 25630

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

Log:
Allow "NULL" as memory context, for consistency with the rest of the code, 
which also does.

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2007-10-14 14:24:27 UTC (rev 25629)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2007-10-14 15:12:21 UTC (rev 25630)
@@ -75,7 +75,7 @@
 {
 	struct ldb_dn *dn;
 
-	if ( (! mem_ctx) || (! ldb)) return NULL;
+	if (! ldb) return NULL;
 
 	dn = talloc_zero(mem_ctx, struct ldb_dn);
 	LDB_DN_NULL_FAILED(dn);



More information about the samba-cvs mailing list