diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-22 18:01:58 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-22 18:08:31 +1030 |
commit | 2c1698fa615a083de7dd647622a302d5de77dc0c (patch) | |
tree | f5e5c9181b7bfd35a916b27140194f71bc3fc99b | |
parent | 8c39302594445ba774ea3fec66417492cc5643e0 (diff) |
Init ioctl bitmasks to 0, shuts up valgrind too.
-rw-r--r-- | src/evdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evdev.c b/src/evdev.c index ce79cf7..e119bb9 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -672,7 +672,7 @@ EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl) }; InputInfoPtr pInfo; - struct input_event ev[ArrayLength(bits)]; + struct input_event ev[ArrayLength(bits)] = {0}; int i; pInfo = device->public.devicePrivate; @@ -1179,9 +1179,9 @@ error: static int EvdevProbe(InputInfoPtr pInfo) { - long key_bitmask[NBITS(KEY_MAX)]; - long rel_bitmask[NBITS(REL_MAX)]; - long abs_bitmask[NBITS(ABS_MAX)]; + long key_bitmask[NBITS(KEY_MAX)] = {0}; + long rel_bitmask[NBITS(REL_MAX)] = {0}; + long abs_bitmask[NBITS(ABS_MAX)] = {0}; int i, has_axes, has_keys, num_buttons; int kernel24 = 0; EvdevPtr pEvdev = pInfo->private; |