diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-05-04 11:30:55 -0600 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2007-05-04 11:31:12 -0600 |
commit | c35f7fe15a5a872606f18c84c097f3b5b1cada74 (patch) | |
tree | 86b71d3724f2f81504e6d851d3f1bec0e8f357b8 | |
parent | 1ddbc60536d6e2b7a4654dd9019a3872c1a54de2 (diff) |
Fix a segfault in RandR
-rw-r--r-- | src/amd_lx_randr.c | 2 |
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 |