diff options
Diffstat (limited to 'xorg-server/dix/extension.c')
-rw-r--r-- | xorg-server/dix/extension.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/xorg-server/dix/extension.c b/xorg-server/dix/extension.c index 6380db364..bdbbf014c 100644 --- a/xorg-server/dix/extension.c +++ b/xorg-server/dix/extension.c @@ -252,12 +252,11 @@ ProcQueryExtension(ClientPtr client) REQUEST_FIXED_SIZE(xQueryExtensionReq, stuff->nbytes); - reply = (xQueryExtensionReply) { - .type = X_Reply, - .sequenceNumber = client->sequence, - .length = 0, - .major_opcode = 0 - }; + memset(&reply, 0, sizeof(xQueryExtensionReply)); + reply.type = X_Reply; + reply.sequenceNumber = client->sequence; + reply.length = 0; + reply.major_opcode = 0; if (!NumExtensions) reply.present = xFalse; @@ -285,12 +284,12 @@ ProcListExtensions(ClientPtr client) REQUEST_SIZE_MATCH(xReq); - reply = (xListExtensionsReply) { - .type = X_Reply, - .nExtensions = 0, - .sequenceNumber = client->sequence, - .length = 0 - }; + memset(&reply, 0, sizeof(xListExtensionsReply)); + reply.type = X_Reply; + reply.nExtensions = 0; + reply.sequenceNumber = client->sequence; + reply.length = 0; + buffer = NULL; if (NumExtensions) { |