aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/packages/rpm/sle11/SOURCES/vidmode-sig11.diff
blob: 3d4866e9b5a6f630e60bd3829cb391115ad43ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: hw/xfree86/common/xf86VidMode.c
================================================================================
--- hw/xfree86/common/xf86VidMode.c
+++ hw/xfree86/common/xf86VidMode.c
@@ -220,6 +220,8 @@
 
     pScrn = xf86Screens[scrnIndex];
     pVidMode = VMPTR(pScrn->pScreen);
+    if (!pScrn->modes)
+	return FALSE;
     pVidMode->First = pScrn->modes;
     pVidMode->Next =  pVidMode->First->next;