make sure state token values are fully initialized
authorBrian <brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 21:52:00 +0000 (15:52 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 21:52:00 +0000 (15:52 -0600)
cherry-picked from master

src/mesa/shader/arbprogparse.c

index 38e174f..2fd356e 100644 (file)
@@ -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)++) {