mshtml: Initialize return value

André Hentschel nerv at dawncrow.de
Mon Aug 22 13:48:33 CDT 2011


otherwise i get a compiler warning here with gcc 4.5.2
---
 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);
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list