From c35f7fe15a5a872606f18c84c097f3b5b1cada74 Mon Sep 17 00:00:00 2001 From: Jordan Crouse Date: Fri, 4 May 2007 11:30:55 -0600 Subject: Fix a segfault in RandR --- src/amd_lx_randr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd_lx_randr.c b/src/amd_lx_randr.c index 7b93ae0..e46ae20 100644 --- a/src/amd_lx_randr.c +++ b/src/amd_lx_randr.c @@ -289,7 +289,7 @@ LXGetRotation(ScreenPtr pScreen) { XF86RandRInfoPtr pRandr = XF86RANDRINFO(pScreen); - return pRandr->rotation; + return pRandr ? pRandr->rotation : RR_Rotate_0; } Bool -- cgit v1.2.3