Module: wine Branch: master Commit: bf066791e014b5ef9b5c5f296a5b7ed80918e83b URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf066791e014b5ef9b5c5f296a...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Apr 4 17:05:07 2012 +0200
jscript: Avoid cleaning an uninitialized variable.
---
dlls/jscript/engine.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 955ba71..19fddd4 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;