OSDN Git Service

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 5b91271..82d825b 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);              \