summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2007-05-04 11:30:55 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-05-04 11:31:12 -0600
commitc35f7fe15a5a872606f18c84c097f3b5b1cada74 (patch)
tree86b71d3724f2f81504e6d851d3f1bec0e8f357b8 /src
parent1ddbc60536d6e2b7a4654dd9019a3872c1a54de2 (diff)
Fix a segfault in RandR
Diffstat (limited to 'src')
-rw-r--r--src/amd_lx_randr.c2
1 files changed, 1 insertions, 1 deletions
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