Mesa (master): mesa: silence 'variable may be used uninitialized' warning in teximage.c
Brian Paul
brianp at kemper.freedesktop.org
Tue Oct 3 20:39:07 UTC 2017
Module: Mesa
Branch: master
Commit: 42eb3052c3537fa9b8a8cbf683c38b30c6e90f1f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=42eb3052c3537fa9b8a8cbf683c38b30c6e90f1f
Author: Brian Paul <brianp at vmware.com>
Date: Tue Oct 3 13:54:54 2017 -0600
mesa: silence 'variable may be used uninitialized' warning in teximage.c
Found with MinGW optimized build.
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
---
src/mesa/main/teximage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 0a3025a2e6..bb22b9a5df 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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);
More information about the mesa-commit
mailing list