summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-04 15:25:32 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-05 08:06:24 -0600
commit9246c2fad437f3922abb20ed86156963a488be3d (patch)
treee0c31caad7d7e4b664a4a32ab56bd5b61208d79f /src
parent06537296f18750a9442e3007fe7d8b2b966dd2cc (diff)
mesa: replace MALLOC w/ CALLOC to fix valgrind warning
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/arrayobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c
index 0bc582602e..b50e9d1d56 100644
--- a/src/mesa/main/arrayobj.c
+++ b/src/mesa/main/arrayobj.c
@@ -77,7 +77,7 @@ lookup_arrayobj(GLcontext *ctx, GLuint id)
struct gl_array_object *
_mesa_new_array_object( GLcontext *ctx, GLuint name )
{
- struct gl_array_object *obj = MALLOC_STRUCT(gl_array_object);
+ struct gl_array_object *obj = CALLOC_STRUCT(gl_array_object);
if (obj)
_mesa_initialize_array_object(ctx, obj, name);
return obj;