aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/dix/swapreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/dix/swapreq.c')
-rw-r--r--xorg-server/dix/swapreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg-server/dix/swapreq.c b/xorg-server/dix/swapreq.c
index 0f6d49ef0..6f9d4d891 100644
--- a/xorg-server/dix/swapreq.c
+++ b/xorg-server/dix/swapreq.c
@@ -283,7 +283,7 @@ SProcConvertSelection(ClientPtr client)
int
SProcSendEvent(ClientPtr client)
{
- xEvent eventT = { .u.u.type = 0 };
+ xEvent eventT;
EventSwapPtr proc;
REQUEST(xSendEventReq);
@@ -296,6 +296,7 @@ SProcSendEvent(ClientPtr client)
proc = EventSwapVector[stuff->event.u.u.type & 0177];
if (!proc || proc == NotImplemented) /* no swapping proc; invalid event type? */
return BadValue;
+ eventT.u.u.type = 0;
(*proc) (&stuff->event, &eventT);
stuff->event = eventT;