mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 23:00:08 +01:00
Don't segfault if referring to a relative output where no modes survived.
This commit is contained in:
parent
fa19e84714
commit
f6401f944d
1 changed files with 10 additions and 0 deletions
|
|
@ -1079,6 +1079,16 @@ xf86InitialOutputPositions (ScrnInfoPtr scrn, DisplayModePtr *modes)
|
|||
any_set = TRUE;
|
||||
continue;
|
||||
}
|
||||
if (!modes[or])
|
||||
{
|
||||
xf86DrvMsg (scrn->scrnIndex, X_ERROR,
|
||||
"Cannot position output %s relative to output %s without modes\n",
|
||||
output->name, relative_name);
|
||||
output->initial_x = 0;
|
||||
output->initial_y = 0;
|
||||
any_set = TRUE;
|
||||
continue;
|
||||
}
|
||||
if (relative->initial_x == POSITION_UNSET)
|
||||
{
|
||||
keep_going = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue