From: Vinson Lee Date: Sun, 29 Aug 2010 18:31:33 +0000 (-0700) Subject: ir_to_mesa: Initialize variable in ir_to_mesa_visitor::visit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a46497a4ee3325fab47929cb17cfe2525e1fc33;p=mesa.git ir_to_mesa: Initialize variable in ir_to_mesa_visitor::visit. Fixes piglit glsl-fs-loop valgrind uninitialized value error on softpipe and llvmpipe. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 948f09a851c..19f3847ab5b 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1553,7 +1553,7 @@ void ir_to_mesa_visitor::visit(ir_constant *ir) { ir_to_mesa_src_reg src_reg; - GLfloat stack_vals[4]; + GLfloat stack_vals[4] = { 0 }; GLfloat *values = stack_vals; unsigned int i;