summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-05-18 12:39:00 -0700
committerEric Anholt <eric@anholt.net>2007-05-18 12:39:00 -0700
commitb0529dcc7bf6aa8330da19d98daa0abaa932cc97 (patch)
treea536095bc843ff4d4c3bc5cebb9a549dd1cc0bd4 /src/mesa/drivers/dri
parent71648a088ee7bfb1a535f32c8afdef4dc2d43e9e (diff)
downloadexternal_mesa3d-b0529dcc7bf6aa8330da19d98daa0abaa932cc97.zip
external_mesa3d-b0529dcc7bf6aa8330da19d98daa0abaa932cc97.tar.gz
external_mesa3d-b0529dcc7bf6aa8330da19d98daa0abaa932cc97.tar.bz2
Zero out bufmgr_fake on alloc.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/common/dri_bufmgr_fake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c
index 914410e..191e16a 100644
--- a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c
+++ b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c
@@ -837,7 +837,7 @@ dri_bufmgr_fake_init(unsigned long low_offset, void *low_virtual,
{
dri_bufmgr_fake *bufmgr_fake;
- bufmgr_fake = malloc(sizeof(*bufmgr_fake));
+ bufmgr_fake = calloc(1, sizeof(*bufmgr_fake));
/* Initialize allocator */
make_empty_list(&bufmgr_fake->referenced);