[PATCH] msi: Avoid an uninitialized compiler warning in InstallerImpl_SummaryInformation.

Gerald Pfeifer gerald at pfeifer.com
Sun Feb 16 14:21:29 CST 2020


According to my visually tracing to the sources this looks like 
a false positive, alas a tricky one, and GCC 10 warns, hence this
straightforward approach to silence it - which is conservative
programming in any case.

Gerald


Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
 dlls/msi/automation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c
index ba3a068a74..489adc96a9 100644
--- a/dlls/msi/automation.c
+++ b/dlls/msi/automation.c
@@ -1837,7 +1837,7 @@ static HRESULT InstallerImpl_SummaryInformation(WORD wFlags,
     UINT ret;
     HRESULT hr;
     MSIHANDLE hsuminfo;
-    IDispatch *dispatch;
+    IDispatch *dispatch = 0;
     VARIANTARG varg0, varg1;
 
     if (!(wFlags & DISPATCH_PROPERTYGET))
-- 
2.25.0



More information about the wine-devel mailing list