diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-14 15:12:21 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:02 +0100 |
commit | 957af15e4b758114702255f8adc4e22b05310b50 (patch) | |
tree | 1863216258ec0ba28faba99d988b06f508483790 /source4/lib/ldb | |
parent | a449b30ca4ad029243b585c386f11b689f7dfeda (diff) | |
download | samba-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')
-rw-r--r-- | source4/lib/ldb/common/ldb_dn.c | 2 |
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); |