summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2004-01-15 00:09:01 +0000
committerBrian Paul <[email protected]>2004-01-15 00:09:01 +0000
commit5bae6b90f93bb1bc2d85efe3de963fb49a38fed1 (patch)
tree6153371eda68ba47997f8ed5d7e1d89dfdeb200b
parent4b603440f64f0bb1d762c4eae9496d12455cdbb1 (diff)
change MALLOC to CALLOC to silence valgrind error in _playback_copy_to_current()
-rw-r--r--src/mesa/main/dlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 375aa4bf86a..8e3c8bcdb93 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -5,9 +5,9 @@
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.0
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -6129,7 +6129,7 @@ _mesa_NewList( GLuint list, GLenum mode )
/* Allocate new display list */
ctx->ListState.CurrentListNum = list;
- ctx->ListState.CurrentBlock = (Node *) MALLOC( sizeof(Node) * BLOCK_SIZE );
+ ctx->ListState.CurrentBlock = (Node *) CALLOC( sizeof(Node) * BLOCK_SIZE );
ctx->ListState.CurrentListPtr = ctx->ListState.CurrentBlock;
ctx->ListState.CurrentPos = 0;