summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-08-31 18:07:22 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-08-31 18:07:22 +0200
commit881bd15f445bb62c3fdea863c968c95217408b6e (patch)
treef658c2069f1e368dedb441eced4aa07e8e5ba72b /hw
parentf4e9a1a98f97155de62908309e87c10487125926 (diff)
xf86Crtc: Set mode to NULL, so nothing bad happens if crtc == NULL.
- Fix is courtesy of math_b.
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/modes/xf86Crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 21e7dd2cd..ed2ae7a42 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1746,7 +1746,7 @@ xf86SetScrnInfoModes (ScrnInfoPtr scrn)
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(scrn);
xf86OutputPtr output;
xf86CrtcPtr crtc;
- DisplayModePtr last, mode;
+ DisplayModePtr last, mode = NULL;
output = SetCompatOutput(config);