diff options
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index e119bb9..482f95e 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -672,9 +672,11 @@ EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl) }; InputInfoPtr pInfo; - struct input_event ev[ArrayLength(bits)] = {0}; + struct input_event ev[ArrayLength(bits)]; int i; + memset(ev, 0, sizeof(ev)); + pInfo = device->public.devicePrivate; for (i = 0; i < ArrayLength(bits); i++) { ev[i].type = EV_LED; |