summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/savage_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 0b7b02a..762226d 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -2164,11 +2164,11 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
if (psav->useEXA) {
const char *modName = "exa";
- XF86ModReqInfo req;
+ XF86ModReqInfo req = {
+ .majorversion = 2,
+ .minorversion = 0
+ };
int errmaj, errmin;
- memset(&req, 0, sizeof(req));
- req.majorversion = 2;
- req.minorversion = 0;
if( !LoadSubModule(pScrn->module, modName,
NULL, NULL, NULL, &req, &errmaj, &errmin) ) {