diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2009-08-07 10:02:22 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-08-07 11:24:47 -0600 |
commit | d80b36f64f0a8224f2c73f3bab9b33d95c392158 (patch) | |
tree | cfe19638ed33de78ce8eab927d32afd75da6204f /src/mesa/drivers/dri/common/dri_util.c | |
parent | 9676ed27fe1f59956779ca4a612929e0cf61e3a3 (diff) |
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>
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-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 576494940f..ecccc01000 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -763,7 +763,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; |