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.
This commit is contained in:
Vinson Lee
2010-08-29 11:48:02 -07:00
parent 0a46497a4e
commit b43611b79c

View File

@@ -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;