summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-24 11:24:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-24 11:25:24 +1000
commit18442d927f6cf03e7a366f6c3c0292b065ba1c64 (patch)
tree516f2604d64507fc781af45bca516a6303c632e1 /src
parenta07a840b26827e1a2c8cccd255177b693c5b91e8 (diff)
Shut up valgrind warnings about uninitialized variables.
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/eventcomm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index c7c5018..cabc4f4 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -78,9 +78,9 @@ static Bool
event_query_is_touchpad(int fd)
{
int ret;
- unsigned long evbits[NBITS(EV_MAX)];
- unsigned long absbits[NBITS(ABS_MAX)];
- unsigned long keybits[NBITS(KEY_MAX)];
+ unsigned long evbits[NBITS(EV_MAX)] = {0};
+ unsigned long absbits[NBITS(ABS_MAX)] = {0};
+ unsigned long keybits[NBITS(KEY_MAX)] = {0};
/* Check for ABS_X, ABS_Y, ABS_PRESSURE and BTN_TOOL_FINGER */
@@ -121,8 +121,8 @@ event_query_axis_ranges(LocalDevicePtr local)
{
SynapticsPrivate *priv = (SynapticsPrivate *)local->private;
struct input_absinfo abs;
- unsigned long absbits[NBITS(ABS_MAX)];
- unsigned long keybits[NBITS(KEY_MAX)];
+ unsigned long absbits[NBITS(ABS_MAX)] = {0};
+ unsigned long keybits[NBITS(KEY_MAX)] = {0};
char buf[256];
int rc;