Re: [PATCH xf86-input-libinput] Initializing strip association with wrong index

2016-09-18 Thread Peter Hutterer
On Fri, Sep 16, 2016 at 10:18:31AM -0700, Keith Packard wrote:
> This looks like a cut coding error to me, and it generated a
> compiler warning about possibly uninitialized value.
> 
> Signed-off-by: Keith Packard 

oops. merged, thanks.

   2f1df46..b87d253  master -> master

Cheers,
   Peter

> ---
>  src/xf86libinput.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)) {
> -- 
> 2.9.3
> 
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

[PATCH xf86-input-libinput] Initializing strip association with wrong index

2016-09-16 Thread Keith Packard
This looks like a cut coding error to me, and it generated a
compiler warning about possibly uninitialized value.

Signed-off-by: Keith Packard 
---
 src/xf86libinput.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)) {
-- 
2.9.3

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel