[PATCH] msi: initialize type (Coverity)

Marcus Meissner marcus at jet.franken.de
Thu Feb 21 18:11:12 CST 2008


Hi,

Coverity spotted this new problem, that type might be used
uninitialized on some code paths in MSI_GetProductInfo.
(CID 678)

Fixed by initializing it.

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 7cfafbc..4ea7b06 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -594,7 +594,7 @@ static UINT WINAPI MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
     BOOL classes = FALSE;
     BOOL badconfig = FALSE;
     LONG res;
-    DWORD save, type;
+    DWORD save, type = REG_NONE;
 
     static WCHAR empty[] = {0};
     static const WCHAR sourcelist[] = {
-- 
1.5.2.4



More information about the wine-patches mailing list