auth3: Avoid an explicit ZERO_STRUCT
authorVolker Lendecke <vl@samba.org>
Sat, 13 Oct 2018 08:41:22 +0000 (10:41 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Oct 2018 17:22:19 +0000 (19:22 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/server_info.c

index 339cce6c4ec00d3be61c8be92ce23826f009ed4a..6d5e9fb72feeb18bda1954265446899e43514c9d 100644 (file)
@@ -503,7 +503,7 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
        struct netr_SamInfo3 *info3;
        const struct dom_sid *user_sid;
        const struct dom_sid *group_sid;
-       struct dom_sid domain_sid;
+       struct dom_sid domain_sid = {0};
        struct dom_sid *group_sids;
        uint32_t num_group_sids = 0;
        const char *tmp;
@@ -523,8 +523,6 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
                return NT_STATUS_NO_MEMORY;
        }
 
-       ZERO_STRUCT(domain_sid);
-
        status = SamInfo3_handle_sids(pdb_get_username(samu),
                                user_sid,
                                group_sid,