~ubuntu-branches/ubuntu/vivid/xorg-server/vivid

« back to all changes in this revision

Viewing changes to debian/patches/157_check_null_modes.patch

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-07-03 12:03:57 UTC
  • mfrom: (1.1.56)
  • Revision ID: package-import@ubuntu.com-20130703120357-caosebpn11zu2zj0
Tags: 2:1.14.1-0ubuntu0.8
Use correct version for libxfixes3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff --git a/hw/xfree86/common/xf86VidMode.c b/hw/xfree86/common/xf86VidMode.c
2
 
index 13ffe06..4cc8ca5 100644
3
 
--- a/hw/xfree86/common/xf86VidMode.c
4
 
+++ b/hw/xfree86/common/xf86VidMode.c
5
 
@@ -224,6 +224,9 @@ VidModeGetFirstModeline(int scrnIndex, pointer *mode, int *dotClock)
6
 
         return FALSE;
7
 
 
8
 
     pVidMode = VMPTR(pScrn->pScreen);
9
 
+    if (pScrn->modes == NULL)
10
 
+        return FALSE;
11
 
+
12
 
     pVidMode->First = pScrn->modes;
13
 
     pVidMode->Next = pVidMode->First->next;
14