aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/attrib.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-05 08:06:59 -0600
committerBrian Paul <[email protected]>2008-09-05 08:06:59 -0600
commit11d694b1bb0cb384d802d7e0e252cf5119febb98 (patch)
tree4574d5ce20d237028abab5c8793db0022badbedb /src/mesa/main/attrib.c
parent9246c2fad437f3922abb20ed86156963a488be3d (diff)
mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()
Diffstat (limited to 'src/mesa/main/attrib.c')
-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 94475b981dd..59babeb47bf 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -1330,7 +1330,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;