[PATCH synaptics] Init num_touches to 0 on start

Peter Hutterer peter.hutterer at who-t.net
Wed Apr 25 17:36:20 PDT 2012


We implicitly rely on this already since we calloc the struct. Do it
expliclity on DeviceOn().

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
This half of the fix to 49161 a bit redundant but better safe than sorry,
they say.

 src/eventcomm.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index 5707e38..741f988 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -150,6 +150,7 @@ InitializeTouch(InputInfoPtr pInfo)
     }
 
     proto_data->cur_slot = proto_data->mtdev->caps.slot.value;
+    proto_data->num_touches = 0;
 
     proto_data->last_mt_vals = calloc(priv->num_slots,
                                       sizeof(ValuatorMask *));
-- 
1.7.10



More information about the xorg-devel mailing list