diff options
author | Keith Packard <keithp@keithp.com> | 2016-09-16 10:18:31 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-09-19 09:51:00 +1000 |
commit | b87d2530db46a08de15376722873295e01bef16f (patch) | |
tree | 59bb82ce4e5104624de6ccdec5bff045e4c5823d | |
parent | 2f1df46ba9ef91c079f6485c04ac7c5515d6057a (diff) |
Initializing strip association with wrong index
This looks like a cut&paste coding error to me, and it generated a
compiler warning about possibly uninitialized value.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/xf86libinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 888ba21..21f87f5 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -4537,7 +4537,7 @@ LibinputInitModeGroupProperties(DeviceIntPtr dev, nstrips = libinput_device_tablet_pad_get_num_strips(device); if (nstrips) { for (s = 0; s < nstrips; s++) { - associations[r] = -1; + associations[s] = -1; for (g = 0; g < ngroups; g++) { group = libinput_device_tablet_pad_get_mode_group(device, g); if (libinput_tablet_pad_mode_group_has_strip(group, s)) { |