From 5f3f14179edf48aad518f6f707bfdc37c27267c6 Mon Sep 17 00:00:00 2001 From: Jay Cotton Date: Mon, 1 Dec 2008 16:06:09 -0800 Subject: Sun bug 6618220: Xorg server core dump in xf86RandRModeRefresh(NULL) --- hw/xfree86/common/xf86RandR.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3