ply-input-device: Fix 'may be used uninitialized' warnings

If libevdev gave plymouth an event with an out of range key event type then plymouth would end up using uninitialized variables.

This commit fixes the compiler warning introduced from that unlikely scenario.
This commit is contained in:
n3rdopolis 2024-01-05 15:42:39 +00:00 committed by Ray Strode
parent 226c573c39
commit 5878235e7d

View file

@ -240,6 +240,8 @@ on_input (ply_input_device_t *input_device)
key_state = PLY_KEY_HELD;
xkb_key_direction = XKB_KEY_UP;
break;
default:
continue;
}
/* According to