Sun bug 6618220: Xorg server core dump in xf86RandRModeRefresh(NULL)

<http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6618220>
(cherry picked from commit 5f3f14179e)

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Jay Cotton 2008-12-01 16:06:09 -08:00 committed by Keith Packard
parent 78af5d81e8
commit ca744c371a

View file

@ -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);