diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-10 12:37:26 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-10 12:37:26 -0700 |
commit | 88563bc37defaf57f0b95db7a2a88be61ddc2d0c (patch) | |
tree | 9c2bae360a91d841615be450b60a6cbe161efdab | |
parent | 0ffdc7ec54d6e6b0ee7bcb6a52bd650d0497f96a (diff) |
dri: alloc __DRIscreen object with calloc()
-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 93b9f458e4..3981c8afd6 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -843,7 +843,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; |