From 3018f9c1e5109680dcf69b8f2d7807696a473bde Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 12 Oct 2012 13:48:27 +1000 Subject: [PATCH] Xi: set xChangeDeviceControlReply.status to Success by default If the status is other than Success, the code will set it to the required value. Signed-off-by: Peter Hutterer Reviewed-by: Keith Packard --- Xi/chgdctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xi/chgdctl.c b/Xi/chgdctl.c index 9fe69a5ada..7daf584610 100644 --- a/Xi/chgdctl.c +++ b/Xi/chgdctl.c @@ -126,7 +126,8 @@ ProcXChangeDeviceControl(ClientPtr client) .repType = X_Reply, .RepType = X_ChangeDeviceControl, .sequenceNumber = client->sequence, - .length = 0 + .length = 0, + .status = Success, }; switch (stuff->control) {