1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3:tests: Initialize pointers with NULL in netdisplay test

Found by Undefined Sanitizer

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2018-11-16 20:02:26 +01:00 committed by Gary Lockyer
parent dbeb806d4a
commit dbdd57e31c
2 changed files with 5 additions and 5 deletions

View File

@ -39,9 +39,9 @@ static NET_API_STATUS test_netquerydisplayinformation(const char *hostname,
uint32_t idx = 0;
int i;
struct NET_DISPLAY_USER *user;
struct NET_DISPLAY_GROUP *group;
struct NET_DISPLAY_MACHINE *machine;
struct NET_DISPLAY_USER *user = NULL;
struct NET_DISPLAY_GROUP *group = NULL;
struct NET_DISPLAY_MACHINE *machine = NULL;
printf("testing NetQueryDisplayInformation level %d\n", level);

View File

@ -265,8 +265,8 @@ static NET_API_STATUS test_netusergetgroups(const char *hostname,
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;
printf("testing NetUserGetGroups level %d\n", level);