From 622bda8a67083af2b1d0821e5cffcce4a50ea0b8 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 21 Jun 2010 17:28:37 +0200 Subject: s3:idmap_rid: untangle assignment from check in idmap_rid_initialize() --- source3/winbindd/idmap_rid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit