vbscript: Always initialize prev_label to prevent compiler warning.
This commit is contained in:
parent
f41513205c
commit
8b903e43e7
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue