rrmonitor: allocate using the correct type

Monitor outputs are of type RROutput, not RRCrtc.

(Which are both XID, so this makes no difference in practice, other than
being technically correct.)

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Giuseppe Bilotta 2018-01-31 17:33:48 +01:00 committed by Adam Jackson
parent ff410c56bf
commit 94e7ca6a56

View File

@ -92,7 +92,7 @@ RRMonitorSetFromServer(RRCrtcPtr crtc, RRMonitorPtr monitor)
monitor->name = RRMonitorCrtcName(crtc);
monitor->pScreen = crtc->pScreen;
monitor->numOutputs = crtc->numOutputs;
monitor->outputs = calloc(crtc->numOutputs, sizeof(RRCrtc));
monitor->outputs = calloc(crtc->numOutputs, sizeof(RROutput));
if (!monitor->outputs)
return FALSE;
for (o = 0; o < crtc->numOutputs; o++)