From: Brian Paul Date: Fri, 5 Sep 2008 14:07:20 +0000 (-0600) Subject: mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f6e76d7f1f46b76ae19b089596ba6770c31dc5a;p=mesa.git mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib() --- diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 4cbb0273ab6..7179fba3db3 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1325,7 +1325,7 @@ _mesa_PushClientAttrib(GLbitfield mask) newnode->next = head; head = newnode; /* unpacking attribs */ - attr = MALLOC_STRUCT( gl_pixelstore_attrib ); + attr = CALLOC_STRUCT( gl_pixelstore_attrib ); copy_pixelstore(ctx, attr, &ctx->Unpack); newnode = new_attrib_node( GL_CLIENT_UNPACK_BIT ); newnode->data = attr;