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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xorg-server/dix/swapreq.c b/xorg-server/dix/swapreq.c
index a896b4b29..6f9d4d891 100644
--- a/xorg-server/dix/swapreq.c
+++ b/xorg-server/dix/swapreq.c
@@ -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;