]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Initialize pointers in libnetapi user test
authorAndreas Schneider <asn@samba.org>
Fri, 16 Nov 2018 17:25:58 +0000 (18:25 +0100)
committerGary Lockyer <gary@samba.org>
Thu, 22 Nov 2018 21:13:26 +0000 (22:13 +0100)
Found by Undefined Sanitizer.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/torture/libnetapi/libnetapi_user.c

index e925725e5f00523d33dd86c0a130cc3c3828e6af..134b4e8b9c0b77d1baae837be66c4b8ee5bc12fc 100644 (file)
@@ -271,8 +271,8 @@ static NET_API_STATUS test_netusergetgroups(struct torture_context *tctx,
        uint8_t *buffer = NULL;
        int i;
 
-       struct GROUP_USERS_INFO_0 *i0;
-       struct GROUP_USERS_INFO_1 *i1;
+       struct GROUP_USERS_INFO_0 *i0 = NULL;
+       struct GROUP_USERS_INFO_1 *i1 = NULL;
 
        torture_comment(tctx, "Testing NetUserGetGroups level %d\n", level);