oleaut32/tests: fix valgrind warnings
Austin English
austinenglish at gmail.com
Thu Jul 9 16:26:34 CDT 2009
Patch by John Reiser. Originally sent last year in the lead up to 1.0.
See bug 14371.
--
-Austin
-------------- next part --------------
From 310ab14155a03f32bf9ae467ef06fd2b1e0d7dfb Mon Sep 17 00:00:00 2001
From: John Reiser <jreiser at BitWagon.com>
Date: Thu, 9 Jul 2009 16:23:23 -0500
Subject: [PATCH] oleaut32/tests: fix valgrind warnings
---
dlls/oleaut32/tests/vartest.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 53b0afc..1cee6df 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -5247,6 +5247,11 @@ static void test_VarCat(void)
HRESULT hres;
HRESULT expected_error_num;
+ memset(&left, 0, sizeof(left));
+ memset(&right, 0, sizeof(right));
+ memset(&result, 0, sizeof(result));
+ memset(&expected, 0, sizeof(expected));
+
/* Set date format for testing */
lcid = LOCALE_USER_DEFAULT;
GetLocaleInfo(lcid,LOCALE_SSHORTDATE,orig_date_format,128);
--
1.5.4.3
More information about the wine-patches
mailing list