[PATCH] mshtml: Avoid using uninitialized variable
Christian Costa
titan.costa at wanadoo.fr
Thu Aug 25 02:42:38 CDT 2011
---
dlls/mshtml/htmlanchor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/htmlanchor.c b/dlls/mshtml/htmlanchor.c
index c369ed5..7422de7 100644
--- a/dlls/mshtml/htmlanchor.c
+++ b/dlls/mshtml/htmlanchor.c
@@ -45,7 +45,7 @@ static HRESULT navigate_anchor(HTMLAnchorElement *This)
{
nsAString href_str, target_str;
nsresult nsres;
- HRESULT hres;
+ HRESULT hres = E_FAIL;
nsAString_Init(&target_str, NULL);
nsres = nsIDOMHTMLAnchorElement_GetTarget(This->nsanchor, &target_str);
More information about the wine-patches
mailing list