diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 594c77d..c24e398 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -7355,7 +7355,7 @@ RADEONGetMergedFBOptions(ScrnInfoPtr pScrn) if(info->MergedFB) { /* fill in monitor */ - info->CRT2pScrn->monitor = xalloc(sizeof(MonRec)); + info->CRT2pScrn->monitor = xcalloc(1, sizeof(MonRec)); if(info->CRT2pScrn->monitor) { DisplayModePtr tempm = NULL, currentm = NULL, newm = NULL; memcpy(info->CRT2pScrn->monitor, pScrn->monitor, sizeof(MonRec));