mesa: silence 'variable may be used uninitialized' warning in teximage.c
authorBrian Paul <brianp@vmware.com>
Tue, 3 Oct 2017 19:54:54 +0000 (13:54 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Oct 2017 20:32:59 +0000 (14:32 -0600)
Found with MinGW optimized build.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/teximage.c

index 0a3025a..bb22b9a 100644 (file)
@@ -4885,7 +4885,7 @@ compressed_tex_sub_image(unsigned dim, GLenum target, GLuint texture,
                          const GLvoid *data, bool dsa, bool no_error,
                          const char *caller)
 {
-   struct gl_texture_object *texObj;
+   struct gl_texture_object *texObj = NULL;
    struct gl_texture_image *texImage;
 
    GET_CURRENT_CONTEXT(ctx);