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 befac4741..1145b98e3 100644 --- a/xorg-server/randr/rrmode.c +++ b/xorg-server/randr/rrmode.c @@ -312,12 +312,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); |