dri: alloc __DRIscreen object with calloc()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user