xf86Crtc: Set mode to NULL, so nothing bad happens if crtc == NULL.

- Fix is courtesy of math_b.
This commit is contained in:
Maarten Maathuis 2008-08-31 18:07:22 +02:00
parent f4e9a1a98f
commit 881bd15f44

View File

@ -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);