[PATCH] msxml3: Initialize ptr and size (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Dec 31 07:50:53 CST 2011
Hi,
Is used uninitialized via the default: exit case of the VT type.
CID 5515.
Ciao, Marcus
---
dlls/msxml3/httprequest.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index c3d5df9..84f86ff 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -539,7 +539,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
BindStatusCallback *bsc;
IBindCtx *pbc;
HRESULT hr;
- int size;
+ int size = 0;
hr = CreateBindCtx(0, &pbc);
if (hr != S_OK) return hr;
@@ -565,7 +565,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
if (This->verb != BINDVERB_GET)
{
- void *send_data, *ptr;
+ void *send_data, *ptr = NULL;
SAFEARRAY *sa = NULL;
if (V_VT(body) == (VT_VARIANT|VT_BYREF))
--
1.7.3.4
More information about the wine-patches
mailing list