Hans Leidekker : msi: Initialize a variable (valgrind).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 21 09:57:27 CDT 2015


Module: wine
Branch: master
Commit: 55b678e18686862e25d1dc310d27a6f2c751dadf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=55b678e18686862e25d1dc310d27a6f2c751dadf

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Apr 21 11:20:04 2015 +0200

msi: Initialize a variable (valgrind).

---

 dlls/msi/msi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 2c476fa..2b531da 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -4201,7 +4201,7 @@ UINT WINAPI MsiProvideComponentA( LPCSTR product, LPCSTR feature, LPCSTR compone
 {
     WCHAR *productW = NULL, *componentW = NULL, *featureW = NULL, *bufW = NULL;
     UINT r = ERROR_OUTOFMEMORY;
-    DWORD lenW;
+    DWORD lenW = 0;
     int len;
 
     TRACE("%s, %s, %s, %x, %p, %p\n", debugstr_a(product), debugstr_a(component), debugstr_a(feature), mode, buf, buflen);




More information about the wine-cvs mailing list