r300: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sun, 14 Feb 2010 08:56:57 +0000 (00:56 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 14 Feb 2010 08:56:57 +0000 (00:56 -0800)
src/mesa/drivers/dri/r300/r300_draw.c

index 4ae0d6fe48f38f030fd43e354b07575fca18654a..3efa0e3a1635f41f08f9c70b65f04213073254c3 100644 (file)
@@ -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;