Commit b87d2530 authored by Keith Packard's avatar Keith Packard Committed by Peter Hutterer

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's avatarKeith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 2f1df46b
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment