git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2d59edb
)
s3:idmap_rid: untangle assignment from check in idmap_rid_initialize()
author
Michael Adam
<obnox@samba.org>
Mon, 21 Jun 2010 15:28:37 +0000
(17:28 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 23 Jun 2010 10:40:37 +0000
(12:40 +0200)
source3/winbindd/idmap_rid.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_rid.c
b/source3/winbindd/idmap_rid.c
index 359bbfd4119e3fe59088e890e262ee43bfc89bb9..10cb98e690779973f4a74dc11a93c725d67bb63e 100644
(file)
--- 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;
}