diff options
author | Jay Cotton <jay.cotton@sun.com> | 2008-12-01 16:06:09 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-12-01 16:06:09 -0800 |
commit | 5f3f14179edf48aad518f6f707bfdc37c27267c6 (patch) | |
tree | 7dfa83b1651a37a40e70d3af0a2f5b9711a8b6ef | |
parent | 09df7cc5ad7b72d8a23c3e22fc718aad8c16f4d3 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index 79d301763..2d1ec5d85 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); |