summaryrefslogtreecommitdiff
path: root/src/mesa
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 15:06:13 -0700
commit1dae2be1f67d7367173f32c90f8d98311aa7b102 (patch)
tree9a5767fcb6b20d7ba61d797fe73402382e3b2678 /src/mesa
parentdf84f788d21d3d2f61a0c5a35b75586d3099cdd4 (diff)
dri: alloc __DRIscreen object with calloc()
Conflicts: src/mesa/drivers/dri/common/dri_util.c
Diffstat (limited to 'src/mesa')
-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 fff79c36ad..ac6e3cdda8 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;
}