jscript: Avoid cleaning an uninitialized variable.
This commit is contained in:
parent
c374fe9bdb
commit
bf066791e0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue