diff options
Diffstat (limited to 'xorg-server/randr/rrmode.c')
-rw-r--r-- | xorg-server/randr/rrmode.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xorg-server/randr/rrmode.c b/xorg-server/randr/rrmode.c index 56e5977b5..ae1218e0e 100644 --- a/xorg-server/randr/rrmode.c +++ b/xorg-server/randr/rrmode.c @@ -310,12 +310,11 @@ ProcRRCreateMode(ClientPtr client) if (!mode) return error; - rep = (xRRCreateModeReply) { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0, - .mode = mode->mode.id - }; + memset(&rep, 0, sizeof(rep)); + rep.type = X_Reply; + rep.sequenceNumber = client->sequence; + rep.length = 0; + rep.mode = mode->mode.id; if (client->swapped) { swaps(&rep.sequenceNumber); swapl(&rep.length); |