rpcrt4: Zero the memory of the s1 structure in test_simple_struct to avoid a Valgrind warning.

This commit is contained in:
Rob Shearman 2008-06-14 17:30:40 +01:00 committed by Alexandre Julliard
parent fd8cb3f9c2
commit 3f92030e2d
1 changed files with 4 additions and 1 deletions

View File

@ -933,6 +933,9 @@ static void test_simple_struct(void)
};
/* zero the entire structure, including the holes */
memset(&s1, 0, sizeof(s1));
/* FC_STRUCT */
s1.s = 0x1234;
s1.c = 0xa5;
@ -956,7 +959,7 @@ static void test_simple_struct(void)
}
/* zero the entire structure, including the hole */
memset(&ps1, 0, sizeof(&ps1));
memset(&ps1, 0, sizeof(ps1));
/* FC_PSTRUCT */
ps1.l1 = 0xdeadbeef;