From b43611b79c1f0a5caff80c17c9e7840a718f07c9 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 29 Aug 2010 11:48:02 -0700 Subject: [PATCH] glsl: Initialize data in read_constant. Completely initialize data that is passed into a ir_constant constructor. Fixes piglit glsl-fs-mix valgrind uninitialized variable error on softpipe and llvmpipe. --- src/glsl/ir_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index 366db327740..e57e03c3078 100644 --- a/src/glsl/ir_reader.cpp +++ b/src/glsl/ir_reader.cpp @@ -803,7 +803,7 @@ read_constant(_mesa_glsl_parse_state *st, s_list *list) const glsl_type *const base_type = type->get_base_type(); - ir_constant_data data; + ir_constant_data data = { { 0 } }; // Read in list of values (at most 16). int k = 0; -- 2.30.2