From bf066791e014b5ef9b5c5f296a5b7ed80918e83b Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 4 Apr 2012 17:05:07 +0200 Subject: [PATCH] jscript: Avoid cleaning an uninitialized variable. --- dlls/jscript/engine.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 955ba71969a..19fddd4c1da 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2629,11 +2629,8 @@ HRESULT exec_source(exec_ctx_t *ctx, bytecode_t *code, source_elements_t *source assert(ctx->script->exec_ctx == ctx); ctx->script->exec_ctx = prev_ctx; - - if(FAILED(hres)) { - VariantClear(&val); + if(FAILED(hres)) return hres; - } if(retv) *retv = val; -- 2.11.4.GIT