summaryrefslogtreecommitdiff
path: root/src/glsl/ir_reader.cpp
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-29 11:48:02 -0700
committerVinson Lee <vlee@vmware.com>2010-08-29 11:48:02 -0700
commitb43611b79c1f0a5caff80c17c9e7840a718f07c9 (patch)
tree13cf18c136d3834400fda225338234eaed772fec /src/glsl/ir_reader.cpp
parent0a46497a4ee3325fab47929cb17cfe2525e1fc33 (diff)
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.
Diffstat (limited to 'src/glsl/ir_reader.cpp')
-rw-r--r--src/glsl/ir_reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 366db32774..e57e03c307 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;