summaryrefslogtreecommitdiff
path: root/xfixes/xfixes.c
diff options
context:
space:
mode:
Diffstat (limited to 'xfixes/xfixes.c')
-rw-r--r--xfixes/xfixes.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c
index 54f84f41d..c6dd19eb3 100644
--- a/xfixes/xfixes.c
+++ b/xfixes/xfixes.c
@@ -61,15 +61,15 @@ static int
ProcXFixesQueryVersion(ClientPtr client)
{
XFixesClientPtr pXFixesClient = GetXFixesClient(client);
- xXFixesQueryVersionReply rep;
+ xXFixesQueryVersionReply rep = {
+ .type = X_Reply,
+ .sequenceNumber = client->sequence,
+ .length = 0
+ };
REQUEST(xXFixesQueryVersionReq);
REQUEST_SIZE_MATCH(xXFixesQueryVersionReq);
- memset(&rep, 0, sizeof(xXFixesQueryVersionReply));
- rep.type = X_Reply;
- rep.length = 0;
- rep.sequenceNumber = client->sequence;
if (version_compare(stuff->majorVersion, stuff->minorVersion,
SERVER_XFIXES_MAJOR_VERSION,