From: Brian Paul Date: Wed, 24 Jun 2009 22:12:20 +0000 (-0600) Subject: glsl: fix uninitialized var in _slang_gen_for_without_continue() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09313043e7d5b91465846c9064b95871f9f03cc3;p=mesa.git glsl: fix uninitialized var in _slang_gen_for_without_continue() --- diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 3b58ee4cbd3..4623b6b5bcd 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -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); }