Initialize Mode with 0 in xf86RandRModeConvert.
Asking for trouble if non-initialized values contain random data.
This commit is contained in:
parent
33b94da632
commit
c6c284e64b
|
@ -683,11 +683,8 @@ xf86RandRModeConvert (ScrnInfoPtr scrn,
|
||||||
RRModePtr randr_mode,
|
RRModePtr randr_mode,
|
||||||
DisplayModePtr mode)
|
DisplayModePtr mode)
|
||||||
{
|
{
|
||||||
mode->prev = NULL;
|
memset(mode, 0, sizeof(DisplayModeRec));
|
||||||
mode->next = NULL;
|
|
||||||
mode->name = NULL;
|
|
||||||
mode->status = MODE_OK;
|
mode->status = MODE_OK;
|
||||||
mode->type = 0;
|
|
||||||
|
|
||||||
mode->Clock = randr_mode->mode.dotClock / 1000;
|
mode->Clock = randr_mode->mode.dotClock / 1000;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue