From 957af15e4b758114702255f8adc4e22b05310b50 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 14 Oct 2007 15:12:21 +0200 Subject: r25630: Allow "NULL" as memory context, for consistency with the rest of the code, which also does. (This used to be commit 083b606496308741958bb9fc6b3e50a582857677) --- source4/lib/ldb/common/ldb_dn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index f0bd72e009..08911344b7 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -75,7 +75,7 @@ struct ldb_dn *ldb_dn_new(void *mem_ctx, struct ldb_context *ldb, const char *st { 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); -- cgit