dri: Fix problems with unitialized values in dri screen object.

This fixes crash in r200 KMS driver when pSAREA was set to 1 randomly because of memory wasn't cleared.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
This commit is contained in:
Pauli Nieminen 2009-08-07 10:02:22 -07:00 committed by Brian Paul
parent 9de26ccbcc
commit 0d7fafa0ed

View file

@ -778,7 +778,7 @@ dri2CreateNewScreen(int scrn, int fd,
if (driDriverAPI.InitScreen2 == NULL)
return NULL;
psp = _mesa_malloc(sizeof(*psp));
psp = _mesa_calloc(sizeof(*psp));
if (!psp)
return NULL;