summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-05 08:07:20 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-05 08:07:20 -0600
commit0f6e76d7f1f46b76ae19b089596ba6770c31dc5a (patch)
tree17aca4de0a893ce9a6f967dc0accbeb9ac44ce0b /src/mesa/main
parenta0b5ac424b8bc310223137e7dc00d2eeeddb9ec6 (diff)
mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/attrib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 4cbb0273ab..7179fba3db 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;