dri: alloc __DRIscreen object with calloc()

This commit is contained in:
Brian Paul 2008-11-10 12:37:08 -07:00
parent 2d76a0d77a
commit 6186e7a206

View file

@ -682,7 +682,7 @@ driCreateNewScreen(int scrn,
static const __DRIextension *emptyExtensionList[] = { NULL };
__DRIscreen *psp;
psp = _mesa_malloc(sizeof *psp);
psp = _mesa_calloc(sizeof *psp);
if (!psp)
return NULL;