1
0
xorg-x11-server/vidmode-sig11.diff

12 lines
413 B
Diff

--- hw/xfree86/common/xf86VidMode.c.orig 2008-11-06 17:46:03.000000000 +0100
+++ hw/xfree86/common/xf86VidMode.c 2008-11-06 17:48:54.000000000 +0100
@@ -225,6 +225,8 @@ VidModeGetFirstModeline(int scrnIndex, p
pScrn = xf86Screens[scrnIndex];
pVidMode = VMPTR(pScrn->pScreen);
+ if (!pScrn->modes)
+ return FALSE;
pVidMode->First = pScrn->modes;
pVidMode->Next = pVidMode->First->next;