summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-10-22 18:01:58 +1030
committerPeter Hutterer <peter.hutterer@redhat.com>2008-10-23 17:15:28 +1030
commit172523d74557f4c82209f9dd4869d7735944c9e7 (patch)
tree5388566d36736ad446c0761965f83e1dfe166c36
parent8fb820ffafdc8962ed747f918c6ecc1c4f451b0e (diff)
Init ioctl bitmasks to 0, shuts up valgrind too.
(cherry picked from commit 2c1698fa615a083de7dd647622a302d5de77dc0c)
-rw-r--r--src/evdev.c8
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;