diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-23 14:05:41 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-23 17:15:32 +1030 |
commit | 09b2a5e87b9f05cb2cb7e794e49ba9650dd94eab (patch) | |
tree | a277860f388f3819f887735c34e8e209a9d328ff | |
parent | fa18a4a38d3cdf9ab94dcc5586cade3016a97616 (diff) |
Silence compiler warning by memsetting the struct properly.
(cherry picked from commit 0ab4c09e504ba3822c5e030732b770140165e725)
-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; |