[PATCH] mshtml: initialize use_new_window (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Feb 7 02:50:58 CST 2015


1262246 Uninitialized scalar variable

could happen in the error case if GetTarget is not successful
---
 dlls/mshtml/htmlform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/htmlform.c b/dlls/mshtml/htmlform.c
index ac6eb93..a9ba11b 100644
--- a/dlls/mshtml/htmlform.c
+++ b/dlls/mshtml/htmlform.c
@@ -390,7 +390,7 @@ static HRESULT WINAPI HTMLFormElement_submit(IHTMLFormElement *iface)
     IUri *uri;
     nsresult nsres;
     HRESULT hres;
-    BOOL use_new_window;
+    BOOL use_new_window = FALSE;
 
     TRACE("(%p)\n", This);
 
-- 
1.8.4.5




More information about the wine-patches mailing list