From 3f92030e2d429f0458c725077c880af0e79ba972 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sat, 14 Jun 2008 17:30:40 +0100 Subject: [PATCH] rpcrt4: Zero the memory of the s1 structure in test_simple_struct to avoid a Valgrind warning. --- dlls/rpcrt4/tests/ndr_marshall.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c index 84a38918acf..ecb9f57f625 100644 --- a/dlls/rpcrt4/tests/ndr_marshall.c +++ b/dlls/rpcrt4/tests/ndr_marshall.c @@ -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;