diff options
-rw-r--r-- | Xi/grabdev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Xi/grabdev.c b/Xi/grabdev.c index 443ef56c1..9c6c429ed 100644 --- a/Xi/grabdev.c +++ b/Xi/grabdev.c @@ -175,10 +175,7 @@ CreateMaskFromList(ClientPtr client, XEventClass * list, int count, int device; DeviceIntPtr tdev; - for (i = 0; i < EMASKSIZE; i++) { - mask[i].mask = 0; - mask[i].dev = NULL; - } + memset(mask, 0, EMASKSIZE * sizeof(struct tmask)); for (i = 0; i < count; i++, list++) { device = *list >> 8; |