r128: Silence uninitialized variable warnings in r128_tris.c.
authorVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 21:12:12 +0000 (13:12 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 21:12:12 +0000 (13:12 -0800)
src/mesa/drivers/dri/r128/r128_tris.c

index 5b91271d740779be2f6dcb6c8e1df0e7b82cdc40..82d825b8d282e3e78d5a3b8863f6ac85f5014c74 100644 (file)
@@ -216,7 +216,8 @@ do {                                                        \
 
 #define LOCAL_VARS(n)                                          \
    r128ContextPtr rmesa = R128_CONTEXT(ctx);                   \
-   GLuint color[n], spec[n];                                   \
+   GLuint color[n] = { 0 };                                    \
+   GLuint spec[n] = { 0 };                                     \
    GLuint coloroffset = rmesa->coloroffset;                    \
    GLuint specoffset = rmesa->specoffset;                      \
    GLboolean havespec = (rmesa->specoffset != 0);              \