jscript: Fix the uninitialized variable warning.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Sep 16 21:29:50 CDT 2008


---
 dlls/jscript/engine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index 2a1bf15..50430ce 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -524,7 +524,7 @@ HRESULT block_statement_eval(exec_ctx_t *ctx, statement_t *_stat, return_type_t
 static HRESULT variable_list_eval(exec_ctx_t *ctx, variable_declaration_t *var_list, jsexcept_t *ei)
 {
     variable_declaration_t *iter;
-    HRESULT hres;
+    HRESULT hres = E_FAIL;
 
     for(iter = var_list; iter; iter = iter->next) {
         VARIANT val;
-- 
1.6.0.1






More information about the wine-patches mailing list