[PATCH] wbemprox: initialize desc (Coverity)
Marcus Meissner
marcus at jet.franken.de
Thu May 9 03:50:28 CDT 2013
As even the error paths in here use "desc", just fill it
with 0 at the begin.
971377 Uninitialized scalar variable
Ciao, Marcus
---
dlls/wbemprox/builtin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 3266bd2..fe3fb98 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -1407,7 +1407,7 @@ static void fill_videocontroller( struct table *table )
const WCHAR *name = videocontroller_deviceidW;
if (!(table->data = heap_alloc( sizeof(*rec) ))) return;
-
+ memset (&desc, 0, sizeof(desc));
hr = CreateDXGIFactory( &IID_IDXGIFactory, (void **)&factory );
if (FAILED(hr)) goto done;
--
1.7.10.4
More information about the wine-patches
mailing list