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

Author: José Fonseca <[email protected]>
Date:   Sat Mar 12 20:39:17 2011 +0000

util: Silence gcc unitialized member warning

---

 src/gallium/auxiliary/util/u_vbuf_mgr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c 
b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index 51bb4b8..521ac07 100644
--- a/src/gallium/auxiliary/util/u_vbuf_mgr.c
+++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c
@@ -170,6 +170,7 @@ static void u_vbuf_translate_begin(struct u_vbuf_mgr_priv 
*mgr,
 
    /* Initialize the translate key, i.e. the recipe how vertices should be
      * translated. */
+   memset(&key, 0, sizeof key);
    for (i = 0; i < mgr->ve->count; i++) {
       struct pipe_vertex_buffer *vb =
             &mgr->b.vertex_buffer[mgr->ve->ve[i].vertex_buffer_index];

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

Reply via email to