summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-07-02 10:06:02 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-07-02 10:06:02 +0200
commitac9cbaf32176cf144bc694ac879e7c9e2920f762 (patch)
treee5c3efcc36e27f3014ce7110ff6c1ae9a1f48a62 /src/radeon_driver.c
parent5b5b90c2cea7e36895354f5872acd3fc769653f9 (diff)
radeon: Fully zero-initialize info->CRT2pScrn->monitor.
This prevents modes from getting rejected due to the uninitialized maxPixClock value. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=9816 .
Diffstat (limited to 'src/radeon_driver.c')
-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 4e1868d..5c20b0e 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));