[PATCH] msxml3: initialize hr (Coverity)
Marcus Meissner
marcus at jet.franken.de
Thu Mar 14 16:11:45 CDT 2013
CID 989105
The "OK" path has hr not initialized at all.
Ciao, Marcus
---
dlls/msxml3/element.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c
index 70360e5..20cd9b7 100644
--- a/dlls/msxml3/element.c
+++ b/dlls/msxml3/element.c
@@ -1243,7 +1243,7 @@ static HRESULT WINAPI domelem_setAttribute(
domelem *This = impl_from_IXMLDOMElement( iface );
xmlChar *xml_name, *xml_value, *local, *prefix;
xmlNodePtr element;
- HRESULT hr;
+ HRESULT hr = S_OK;
TRACE("(%p)->(%s %s)\n", This, debugstr_w(name), debugstr_variant(&value));
--
1.7.10.4
More information about the wine-patches
mailing list