summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-21 17:28:37 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:54 +0200
commit622bda8a67083af2b1d0821e5cffcce4a50ea0b8 (patch)
tree551fdc09eb336793f56c1d82d251428fbac13033 /source3
parenta896ba07bb0808143979d752ce89e94c47164f0c (diff)
downloadsamba-622bda8a67083af2b1d0821e5cffcce4a50ea0b8.tar.gz
samba-622bda8a67083af2b1d0821e5cffcce4a50ea0b8.tar.bz2
samba-622bda8a67083af2b1d0821e5cffcce4a50ea0b8.zip
s3:idmap_rid: untangle assignment from check in idmap_rid_initialize()
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_rid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_rid.c b/source3/winbindd/idmap_rid.c
index 359bbfd411..10cb98e690 100644
--- a/source3/winbindd/idmap_rid.c
+++ b/source3/winbindd/idmap_rid.c
@@ -48,7 +48,8 @@ static NTSTATUS idmap_rid_initialize(struct idmap_domain *dom,
gid_t low_gid = 0;
gid_t high_gid = 0;
- if ( (ctx = TALLOC_ZERO_P(dom, struct idmap_rid_context)) == NULL ) {
+ ctx = TALLOC_ZERO_P(dom, struct idmap_rid_context);
+ if (ctx == NULL) {
DEBUG(0, ("Out of memory!\n"));
return NT_STATUS_NO_MEMORY;
}