[PATCH] msi: initialize info and patch variables (Coverity 923)

Marcus Meissner marcus at jet.franken.de
Mon May 4 17:28:16 CDT 2009


Hi,

Coverity spotted that in commit b4b8bc830f7b9cb370f2d0e0c2ff04e4c70315d7.

Ciao, Marcus
---
 dlls/msi/msi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 43436bd..58a1856 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -303,7 +303,7 @@ done:
 
 static UINT MSI_ApplyPatchW(LPCWSTR szPatchPackage, LPCWSTR szProductCode, LPCWSTR szCommandLine)
 {
-    MSIHANDLE patch, info;
+    MSIHANDLE patch = 0, info = 0;
     UINT r, type;
     DWORD size = 0;
     LPCWSTR cmd_ptr = szCommandLine;
-- 
1.5.6



More information about the wine-patches mailing list