mga: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 01:30:15 +0000 (17:30 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 15 Dec 2009 01:30:15 +0000 (17:30 -0800)
src/mesa/drivers/dri/mga/mgatris.c

index b93a21c3acf40c0937f59dceb2e578b144c024ab..c1bcd4b853147ebc715921ed0a484eb69def25d5 100644 (file)
@@ -397,7 +397,8 @@ do {                                                \
 
 #define LOCAL_VARS(n)                                  \
    mgaContextPtr mmesa = MGA_CONTEXT(ctx);             \
-   GLuint color[n], spec[n];                           \
+   GLuint color[n] = { 0 };                            \
+   GLuint spec[n] = { 0 };                             \
    (void) color; (void) spec;