From 697f64a22ac5a7742a0022605a1074351296d4f8 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Tue, 11 Oct 2005 14:50:03 +0000 Subject: [PATCH] check randrp has been initialized --- hw/xfree86/common/xf86RandR.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index da8be9bd3..bd39d2c5e 100644 --- a/hw/xfree86/common/xf86RandR.c +++ b/hw/xfree86/common/xf86RandR.c @@ -320,12 +320,12 @@ xf86RandRCloseScreen (int index, ScreenPtr pScreen) Rotation xf86GetRotation(ScreenPtr pScreen) { - XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen); + XF86RandRInfoPtr randrp; if (xf86RandRIndex == -1) return RR_Rotate_0; - return randrp->rotation; + return XF86RANDRInfo(pScreen)->rotation; } Bool