mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 01:10:25 +01:00
Zero out bufmgr_fake on alloc.
This commit is contained in:
parent
71648a088e
commit
b0529dcc7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue