From cb7c689e1411ebf4a66b6bf36711257352abc822 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 26 Jan 2004 16:16:16 +0000 Subject: [PATCH] replace MALLOC w/ CALLOC to silence valgrind warnings --- src/mesa/tnl/t_vertex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c index dc9ea6184c6..e932ee0ca78 100644 --- a/src/mesa/tnl/t_vertex.c +++ b/src/mesa/tnl/t_vertex.c @@ -1064,7 +1064,7 @@ void _tnl_init_vertices( GLcontext *ctx, if (max_vertex_size > vtx->max_vertex_size) { _tnl_free_vertices( ctx ); vtx->max_vertex_size = max_vertex_size; - vtx->vertex_buf = (GLubyte *)ALIGN_MALLOC(vb_size * max_vertex_size, 32 ); + vtx->vertex_buf = (GLubyte *)ALIGN_CALLOC(vb_size * max_vertex_size, 32 ); } } -- 2.30.2