Module: Mesa
Branch: mesa_7_6_branch
Commit: 6e5fe39f5051bb758b98ed4b9a2b9d550b588edf
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e5fe39f5051bb758b98ed4b9a2b9d550b588edf

Author: Vinson Lee <[email protected]>
Date:   Mon Dec 14 17:30:15 2009 -0800

mga: Silence uninitialized variable warnings.

---

 src/mesa/drivers/dri/mga/mgatris.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/mga/mgatris.c 
b/src/mesa/drivers/dri/mga/mgatris.c
index b93a21c..c1bcd4b 100644
--- a/src/mesa/drivers/dri/mga/mgatris.c
+++ b/src/mesa/drivers/dri/mga/mgatris.c
@@ -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;
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to