Commit 3f92030e authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent fd8cb3f9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment