summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-14 15:12:21 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:02 +0100
commit957af15e4b758114702255f8adc4e22b05310b50 (patch)
tree1863216258ec0ba28faba99d988b06f508483790 /source4/lib/ldb/common
parenta449b30ca4ad029243b585c386f11b689f7dfeda (diff)
downloadsamba-957af15e4b758114702255f8adc4e22b05310b50.tar.gz
samba-957af15e4b758114702255f8adc4e22b05310b50.tar.bz2
samba-957af15e4b758114702255f8adc4e22b05310b50.zip
r25630: Allow "NULL" as memory context, for consistency with the rest of the code,
which also does. (This used to be commit 083b606496308741958bb9fc6b3e50a582857677)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c2
1 files changed, 1 insertions, 1 deletions
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);