mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 00:40:09 +01:00
dri: alloc __DRIscreen object with calloc()
This commit is contained in:
parent
2d76a0d77a
commit
6186e7a206
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue