From: Eric Anholt Date: Fri, 18 May 2007 19:39:00 +0000 (-0700) Subject: Zero out bufmgr_fake on alloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0529dcc7bf6aa8330da19d98daa0abaa932cc97;p=mesa.git Zero out bufmgr_fake on alloc. --- diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c index 914410e4bab..191e16af616 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);