Fix (theoretical) use of uninitialized variable

This cannot ever be unset on any real device, but coverity is unhappy and
that's not making me happy.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-02-19 13:31:48 +10:00
parent 27aaba81d5
commit 4b26eac8ad

View file

@ -678,7 +678,7 @@ sync_mt_state(struct libevdev *dev,
struct slot_change_state changes_out[dev->num_slots])
{
#define MAX_SLOTS 256
int rc;
int rc = 0;
struct slot_change_state changes[MAX_SLOTS] = {0};
for (int axis = ABS_MT_MIN; axis <= ABS_MT_MAX; axis++) {