diff options
author | Eric Anholt <eric@anholt.net> | 2007-05-18 12:39:00 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-05-18 12:39:00 -0700 |
commit | b0529dcc7bf6aa8330da19d98daa0abaa932cc97 (patch) | |
tree | a536095bc843ff4d4c3bc5cebb9a549dd1cc0bd4 | |
parent | 71648a088ee7bfb1a535f32c8afdef4dc2d43e9e (diff) |
Zero out bufmgr_fake on alloc.
-rw-r--r-- | src/mesa/drivers/dri/common/dri_bufmgr_fake.c | 2 |
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 914410e4ba..191e16af61 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); |