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=1dae2be1f67d7367173f32c90f8d98311aa7b102;p=mesa.git dri: alloc __DRIscreen object with calloc() Conflicts: src/mesa/drivers/dri/common/dri_util.c --- 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; }