diff options
author | Günther Deschner <gd@samba.org> | 2009-03-20 11:19:59 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-20 11:19:59 +0100 |
commit | f2243e8197aa064adea3da2a4d1c08250668943f (patch) | |
tree | 19c61457048a9cbd948f669032f11fdd407ad210 /source3/lib | |
parent | d2e348b191ada5492538b7bdae1bb7cd3f639aba (diff) | |
download | samba-f2243e8197aa064adea3da2a4d1c08250668943f.tar.gz samba-f2243e8197aa064adea3da2a4d1c08250668943f.tar.bz2 samba-f2243e8197aa064adea3da2a4d1c08250668943f.zip |
s3-netapi: Fix Coverity #775 (REVERSE_INULL).
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/netapi/user.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index 8cc65a6e9e..b1bd27af2a 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -3242,6 +3242,7 @@ WERROR NetUserGetLocalGroups_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: @@ -3402,12 +3403,8 @@ WERROR NetUserGetLocalGroups_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; done: if (ctx->disable_policy_handle_cache) { |