summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Cotton <jay.cotton@sun.com>2008-12-02 00:06:09 (GMT)
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-12-02 00:06:09 (GMT)
commit5f3f14179edf48aad518f6f707bfdc37c27267c6 (patch)
tree7dfa83b1651a37a40e70d3af0a2f5b9711a8b6ef
parent09df7cc5ad7b72d8a23c3e22fc718aad8c16f4d3 (diff)
Sun bug 6618220: Xorg server core dump in xf86RandRModeRefresh(NULL)
<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6618220>
-rw-r--r--hw/xfree86/common/xf86RandR.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c
index 79d3017..2d1ec5d 100644
--- a/hw/xfree86/common/xf86RandR.c
+++ b/hw/xfree86/common/xf86RandR.c
@@ -74,7 +74,7 @@ xf86RandRGetInfo (ScreenPtr pScreen, Rotation *rotations)
*rotations = RR_Rotate_0;
- for (mode = scrp->modes; ; mode = mode->next)
+ for (mode = scrp->modes; mode != NULL ; mode = mode->next)
{
int refresh = xf86RandRModeRefresh (mode);