Octavian Voicu : vbscript: Always initialize prev_label to prevent compiler warning.

Alexandre Julliard julliard at winehq.org
Mon Sep 19 13:48:45 CDT 2011


Module: wine
Branch: master
Commit: 8b903e43e7305656304c0d0d53f8e1b3dcca1add
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8b903e43e7305656304c0d0d53f8e1b3dcca1add

Author: Octavian Voicu <octavian.voicu at gmail.com>
Date:   Mon Sep 19 20:31:58 2011 +0300

vbscript: Always initialize prev_label to prevent compiler warning.

---

 dlls/vbscript/compile.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dlls/vbscript/compile.c b/dlls/vbscript/compile.c
index 6ee86e1..53b7f81 100644
--- a/dlls/vbscript/compile.c
+++ b/dlls/vbscript/compile.c
@@ -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))




More information about the wine-cvs mailing list