glsl: fix some uninitialized pointers
authorBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 19:44:01 +0000 (13:44 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Aug 2009 19:44:01 +0000 (13:44 -0600)
src/mesa/shader/shader_api.c

index cf9f8b9222422b53a018c1f8b9028caeabb63405..14da974a873d002ae474cb42338820cf32bef423 100644 (file)
@@ -885,7 +885,7 @@ _mesa_get_active_attrib(GLcontext *ctx, GLuint program, GLuint index,
 static struct gl_program_parameter *
 get_uniform_parameter(const struct gl_shader_program *shProg, GLuint index)
 {
-   const struct gl_program *prog;
+   const struct gl_program *prog = NULL;
    GLint progPos;
 
    progPos = shProg->Uniforms->Uniforms[index].VertPos;
@@ -915,7 +915,7 @@ _mesa_get_active_uniform(GLcontext *ctx, GLuint program, GLuint index,
                          GLenum *type, GLchar *nameOut)
 {
    const struct gl_shader_program *shProg;
-   const struct gl_program *prog;
+   const struct gl_program *prog = NULL;
    const struct gl_program_parameter *param;
    GLint progPos;