mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-25 02:09:22 +00:00
Silence compiler warning by memsetting the struct properly.
(cherry picked from commit 0ab4c09e50)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user