diff options
author | Pauli Nieminen <[email protected]> | 2009-08-07 10:02:22 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-07 13:48:26 -0600 |
commit | 0d7fafa0ed706a2053944e9b25068dfed6339a0c (patch) | |
tree | 97676a33b7467c83fa3501585b78513ff4f3131b /src/mesa | |
parent | 9de26ccbcc2123b658c1b01c079b010473bc6da6 (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')
-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 1d940603fa8..e48e10d7c06 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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; |