diff options
author | Günther Deschner <gd@samba.org> | 2009-03-20 11:17:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-20 11:17:50 +0100 |
commit | d2e348b191ada5492538b7bdae1bb7cd3f639aba (patch) | |
tree | 540ec48ff96fc7fbbbbc415edc43f9bd3812fcb0 /source3/lib | |
parent | 97190ae184dff6450b1390c854f7426e2ee3f980 (diff) | |
download | samba-d2e348b191ada5492538b7bdae1bb7cd3f639aba.tar.gz samba-d2e348b191ada5492538b7bdae1bb7cd3f639aba.tar.bz2 samba-d2e348b191ada5492538b7bdae1bb7cd3f639aba.zip |
s3-netapi: Fix Coverity #776 (REVERSE_INULL).
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/netapi/group.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c index 189902a78e..c09632a857 100644 --- a/source3/lib/netapi/group.c +++ b/source3/lib/netapi/group.c @@ -1276,6 +1276,7 @@ WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx, *r->out.buffer = NULL; *r->out.entries_read = 0; + *r->out.total_entries = 0; switch (r->in.level) { case 0: @@ -1364,13 +1365,8 @@ WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx, } } - if (r->out.entries_read) { - *r->out.entries_read = entries_read; - } - - if (r->out.total_entries) { - *r->out.total_entries = entries_read; - } + *r->out.entries_read = entries_read; + *r->out.total_entries = entries_read; werr = WERR_OK; |