Commit 8b903e43 authored by Octavian Voicu's avatar Octavian Voicu Committed by Alexandre Julliard

vbscript: Always initialize prev_label to prevent compiler warning.

parent f4151320
......@@ -522,11 +522,9 @@ static HRESULT compile_while_statement(compile_ctx_t *ctx, while_statement_t *st
if(jmp_end == -1)
return E_OUTOFMEMORY;
if(stat->stat.type != STAT_WHILE) {
prev_label = ctx->while_end_label;
if((ctx->while_end_label = alloc_label(ctx)) == -1)
return E_OUTOFMEMORY;
}
prev_label = ctx->while_end_label;
if(stat->stat.type != STAT_WHILE && (ctx->while_end_label = alloc_label(ctx)) == -1)
return E_OUTOFMEMORY;
hres = compile_statement(ctx, stat->body);
if(FAILED(hres))
......
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