From: Brian Paul Date: Mon, 10 Nov 2008 19:37:08 +0000 (-0700) Subject: dri: alloc __DRIscreen object with calloc() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6186e7a20676c5df30b1b4bffeec87afa1550e25;p=mesa.git dri: alloc __DRIscreen object with calloc() --- diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index ceedd914fb3..e9b1a80b913 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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;