aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/sendexev.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/sendexev.c')
-rw-r--r--xorg-server/Xi/sendexev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xorg-server/Xi/sendexev.c b/xorg-server/Xi/sendexev.c
index 3c213864b..183f88dae 100644
--- a/xorg-server/Xi/sendexev.c
+++ b/xorg-server/Xi/sendexev.c
@@ -135,6 +135,9 @@ ProcXSendExtensionEvent(ClientPtr client)
if (ret != Success)
return ret;
+ if (stuff->num_events == 0)
+ return ret;
+
/* The client's event type must be one defined by an extension. */
first = ((xEvent *) &stuff[1]);