mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-27 06:50:07 +01:00
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:
parent
27aaba81d5
commit
4b26eac8ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue