summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_driver.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 8dc3271e..0d7fa7ed 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -8880,8 +8880,15 @@ RADEONGetMergedFBOptions(ScrnInfoPtr pScrn)
Bool valid = FALSE;
char *tempstr;
strptr = (char *)xf86GetOptValString(info->Options, OPTION_CRT2POS);
- tempstr = xalloc(strlen(strptr) + 1);
- result = sscanf(strptr, "%s %d", tempstr, &ival);
+ if (strptr) {
+ tempstr = xalloc(strlen(strptr) + 1);
+ result = sscanf(strptr, "%s %d", tempstr, &ival);
+ } else { /* Not specified - default is "Clone" */
+ tempstr = NULL;
+ result = 0;
+ info->CRT2Position = radeonClone;
+ valid = TRUE;
+ }
if(result >= 1) {
if(!xf86NameCmp(tempstr,"LeftOf")) {
info->CRT2Position = radeonLeftOf;