From 88563bc37defaf57f0b95db7a2a88be61ddc2d0c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 10 Nov 2008 12:37:26 -0700 Subject: dri: alloc __DRIscreen object with calloc() --- src/mesa/drivers/dri/common/dri_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 93b9f458e4..3981c8afd6 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -843,7 +843,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; -- cgit v1.2.3