From: José Fonseca Date: Sat, 12 Mar 2011 20:39:17 +0000 (+0000) Subject: util: Silence gcc unitialized member warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2332569d2be9ace850b8d6b80abe4c597968773;p=mesa.git util: Silence gcc unitialized member warning --- diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c index 51bb4b85850..521ac07747c 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];