summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Brachaczek <b.brachaczek@gmail.com>2010-08-10 22:31:37 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2010-08-16 10:45:26 +1000
commitec6cb31cc47eed3ccba4c906ca6c54b99136e9eb (patch)
treef0035087b8f9b5462679605141ada8394fd38227
parented47c7f33e315f163a6aebeb3e1c8947004576fd (diff)
evdev: Initialize valuators array. (#24737)
The array needs to be filled with zeros, otherwise we may end up sending it with random values if non-zero values aren't in one row (which is the case for A4Tech X-750F which sends REL_MISC events without a reason). X.Org Bug 24737 <http://bugs.freedesktop.org/show_bug.cgi?id=24737> Signed-off-by: Bartosz Brachaczek <b.brachaczek@gmail.com> Tested-by: Bartek Iwaniec <hash87@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index bdac330..512e957 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -661,7 +661,7 @@ static void
EvdevProcessSyncEvent(InputInfoPtr pInfo, struct input_event *ev)
{
int num_v = 0, first_v = 0;
- int v[MAX_VALUATORS];
+ int v[MAX_VALUATORS] = {};
EvdevPtr pEvdev = pInfo->private;
EvdevProcessValuators(pInfo, v, &num_v, &first_v);