diff options
author | Brian Paul <[email protected]> | 2008-11-10 12:37:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-11-10 15:06:13 -0700 |
commit | 1dae2be1f67d7367173f32c90f8d98311aa7b102 (patch) | |
tree | 9a5767fcb6b20d7ba61d797fe73402382e3b2678 /src/mesa/drivers | |
parent | df84f788d21d3d2f61a0c5a35b75586d3099cdd4 (diff) |
dri: alloc __DRIscreen object with calloc()
Conflicts:
src/mesa/drivers/dri/common/dri_util.c
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 2 |
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 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; } |