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 580e96d6d4
commit 48744d20b1

View file

@ -1737,7 +1737,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);