summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-10 12:37:08 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-11-10 12:39:36 -0700
commit6186e7a20676c5df30b1b4bffeec87afa1550e25 (patch)
tree750aad52b92f720e9b0d9f0017bd06e5c6b99f68 /src/mesa/drivers/dri/common
parent2d76a0d77af7be9539f89cba37ce84338c1cdda4 (diff)
dri: alloc __DRIscreen object with calloc()
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index ceedd914fb..e9b1a80b91 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;