From 1dae2be1f67d7367173f32c90f8d98311aa7b102 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 10 Nov 2008 12:37:08 -0700 Subject: [PATCH] dri: alloc __DRIscreen object with calloc() Conflicts: src/mesa/drivers/dri/common/dri_util.c --- 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 fff79c36ad6..ac6e3cdda8e 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -964,7 +964,7 @@ __driUtilCreateNewScreen(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc, api_ver = internal_api_version; - psp = (__DRIscreenPrivate *)_mesa_malloc(sizeof(__DRIscreenPrivate)); + psp = (__DRIscreenPrivate *)_mesa_calloc(sizeof(__DRIscreenPrivate)); if (!psp) { return NULL; } -- 2.30.2