From c82ffcec6052c16c34e3e40190f8a1ee346a3d0c Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 12 Jun 2008 22:58:49 +0100 Subject: [PATCH] rpcrt4: Initialise the array to be marshalled in test_conformant_array. --- dlls/rpcrt4/tests/ndr_marshall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c index 1ff5e3b0438..89b79d2a742 100644 --- a/dlls/rpcrt4/tests/ndr_marshall.c +++ b/dlls/rpcrt4/tests/ndr_marshall.c @@ -1315,6 +1315,7 @@ static void test_conformant_array(void) void *ptr; unsigned char *mem, *mem_orig; unsigned char memsrc[20]; + unsigned int i; static const unsigned char fmtstr_conf_array[] = { @@ -1328,6 +1329,9 @@ static void test_conformant_array(void) 0x5b /* FC_END */ }; + for (i = 0; i < sizeof(memsrc); i++) + memsrc[i] = i * i; + StubDesc = Object_StubDesc; StubDesc.pFormatTypes = fmtstr_conf_array; -- 2.11.4.GIT