[PATCH 11/19] qxl_pre_init: memset qxl struct
Alon Levy
alevy at redhat.com
Thu May 31 03:24:45 PDT 2012
---
src/qxl_driver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index a3ec1f8..1dbde5b 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1448,6 +1448,7 @@ qxl_pre_init(ScrnInfoPtr pScrn, int flags)
if (!pScrn->driverPrivate)
pScrn->driverPrivate = xnfcalloc(sizeof(qxl_screen_t), 1);
qxl = pScrn->driverPrivate;
+ memset(qxl, 0, sizeof(qxl));
qxl->entity = xf86GetEntityInfo(pScrn->entityList[0]);
--
1.7.10.1
More information about the xorg-devel
mailing list