diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2008-08-31 18:07:22 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2008-08-31 18:07:22 +0200 |
commit | 881bd15f445bb62c3fdea863c968c95217408b6e (patch) | |
tree | f658c2069f1e368dedb441eced4aa07e8e5ba72b /hw | |
parent | f4e9a1a98f97155de62908309e87c10487125926 (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.c | 2 |
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); |