glsl: fix uninitialized var in _slang_gen_for_without_continue()
authorBrian Paul <brianp@vmware.com>
Wed, 24 Jun 2009 22:12:20 +0000 (16:12 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Jun 2009 19:16:33 +0000 (13:16 -0600)
src/mesa/shader/slang/slang_codegen.c

index 3b58ee4cbd33f9ec88f8e17a6904ecd8eda300ec..4623b6b5bcd131f31bf6c5095bd88bad39aa2af2 100644 (file)
@@ -3171,7 +3171,7 @@ _slang_gen_for_without_continue(slang_assemble_ctx *A, slang_operation *oper)
 
    /* declare: bool _condFlag = true */
    {
-      slang_operation *condDecl;
+      slang_operation *condDecl = slang_oper_child(top, 0);
       slang_generate_declaration(A, top->locals, condDecl,
                                  SLANG_SPEC_BOOL, "_condFlag", GL_TRUE);
    }