We implicitly rely on this already since we calloc the struct. Do it expliclity on DeviceOn().
Signed-off-by: Peter Hutterer <[email protected]> --- 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 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
