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

14 lines
448 B
Diff
Raw Normal View History

Index: hw/xfree86/common/xf86VidMode.c
===================================================================
--- hw/xfree86/common/xf86VidMode.c.orig
+++ hw/xfree86/common/xf86VidMode.c
@@ -226,6 +226,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;