Commit bf066791 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Avoid cleaning an uninitialized variable.

parent c374fe9b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment