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

Author: Vinson Lee <[email protected]>
Date:   Tue Dec 15 13:12:12 2009 -0800

r128: Silence uninitialized variable warnings in r128_tris.c.

---

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

diff --git a/src/mesa/drivers/dri/r128/r128_tris.c 
b/src/mesa/drivers/dri/r128/r128_tris.c
index 5b91271..82d825b 100644
--- a/src/mesa/drivers/dri/r128/r128_tris.c
+++ b/src/mesa/drivers/dri/r128/r128_tris.c
@@ -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);              \

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

Reply via email to