From: Brian Date: Thu, 27 Mar 2008 21:52:00 +0000 (-0600) Subject: make sure state token values are fully initialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a072094bf01fbdac255fd6ffa3e0100f6fc7cb6d;p=mesa.git make sure state token values are fully initialized cherry-picked from master --- diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 38e174f3adc..2fd356efad1 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c @@ -1767,7 +1767,7 @@ parse_param_elements (GLcontext * ctx, const GLubyte ** inst, { GLint idx; GLuint err = 0; - gl_state_index state_tokens[STATE_LENGTH]; + gl_state_index state_tokens[STATE_LENGTH] = {0, 0, 0, 0, 0}; GLfloat const_values[4]; switch (*(*inst)++) {