Mesa (mesa_7_7_branch): tdfx: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 29 21:42:04 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: ac21edff1c11639dcd02ae6e8ffa50beb3a82ae7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac21edff1c11639dcd02ae6e8ffa50beb3a82ae7

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec 29 21:34:06 2009 -0800

tdfx: Silence uninitialized variable warning.

---

 src/mesa/drivers/dri/tdfx/tdfx_tex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
index 0aa09e7..e31ae97 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
@@ -1572,7 +1572,7 @@ tdfxCompressedTexImage2D (GLcontext *ctx, GLenum target,
     tdfxTexInfo *ti;
     tdfxMipMapLevel *mml;
     gl_format mesaFormat;
-    GLuint compressedSize;
+    GLuint compressedSize = 0;
 
     if (TDFX_DEBUG & DEBUG_VERBOSE_DRI) {
         fprintf(stderr, "tdfxCompressedTexImage2D: id=%d int 0x%x  %dx%d\n",



More information about the mesa-commit mailing list