summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 4e1868d8..5c20b0eb 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -7323,7 +7323,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));