[PATCH] gameux: Initialize a variable (Coverity)

Marcus Meissner meissner at suse.de
Tue Aug 30 08:43:15 CDT 2011


Hi,

could go uninitialized through the whole function
if the first function errored.  CID 5300.

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

diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c
index 5465b39..b40975f 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -1083,7 +1083,7 @@ static HRESULT STDMETHODCALLTYPE GameStatisticsMgrImpl_GetGameStatistics(
 {
     HRESULT hr;
     WCHAR lpApplicationId[49];
-    GameStatisticsImpl *statisticsImpl;
+    GameStatisticsImpl *statisticsImpl = NULL;
     IGameStatistics *output_iface;
 
     TRACE("(%p, %s, 0x%x, %p, %p)\n", iface, debugstr_w(GDFBinaryPath), openType, pOpenResult, ppiStats);
-- 
1.7.1




More information about the wine-patches mailing list