jscript: Don't clear uninitialized variable.

This commit is contained in:
Jacek Caban 2008-09-30 17:47:55 +02:00 committed by Alexandre Julliard
parent 50a84b4545
commit a9c4d2b18e
1 changed files with 1 additions and 3 deletions

View File

@ -2862,10 +2862,8 @@ HRESULT assign_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags
hres = put_value(ctx->parser->script, &exprval, &rval, ei);
exprval_release(&exprval);
if(FAILED(hres)) {
VariantClear(&rval);
if(FAILED(hres))
return hres;
}
ret->type = EXPRVAL_VARIANT;
ret->u.var = rval;