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

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 14 09:02:48 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Feb 14 00:56:57 2010 -0800

r300: Silence uninitialized variable warning.

---

 src/mesa/drivers/dri/r300/r300_draw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c
index 4ae0d6f..3efa0e3 100644
--- a/src/mesa/drivers/dri/r300/r300_draw.c
+++ b/src/mesa/drivers/dri/r300/r300_draw.c
@@ -332,7 +332,7 @@ static void r300TranslateAttrib(GLcontext *ctx, GLuint attr, int count, const st
 {
 	r300ContextPtr r300 = R300_CONTEXT(ctx);
 	struct r300_vertex_buffer *vbuf = &r300->vbuf;
-	struct vertex_attribute r300_attr;
+	struct vertex_attribute r300_attr = { 0 };
 	GLenum type;
 	GLuint stride;
 




More information about the mesa-commit mailing list