jscript: Avoid cleaning an uninitialized variable.

This commit is contained in:
Jacek Caban 2012-04-04 17:05:07 +02:00 committed by Alexandre Julliard
parent c374fe9bdb
commit bf066791e0
1 changed files with 1 additions and 4 deletions

View File

@ -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;