Mesa (master): r300g: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Sun Jan 31 06:51:17 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Jan 30 22:50:35 2010 -0800

r300g: Silence uninitialized variable warning.

---

 src/gallium/drivers/r300/r300_render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 95b7cb5..38636dc 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -142,7 +142,7 @@ static void r300_emit_draw_arrays_immediate(struct r300_context *r300,
 
     /* Stride to the same attrib in the next vertex in the vertex buffer,
      * in dwords. */
-    unsigned stride[PIPE_MAX_ATTRIBS];
+    unsigned stride[PIPE_MAX_ATTRIBS] = {0};
 
     /* Mapped vertex buffers. */
     uint32_t* map[PIPE_MAX_ATTRIBS] = {0};




More information about the mesa-commit mailing list