diff options
author | Pauli Nieminen <[email protected]> | 2009-08-07 10:02:22 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-07 11:24:47 -0600 |
commit | d80b36f64f0a8224f2c73f3bab9b33d95c392158 (patch) | |
tree | cfe19638ed33de78ce8eab927d32afd75da6204f /src/mesa/drivers/dri | |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-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 576494940f3..ecccc010009 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; |