mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 10:08:06 +02:00
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:
parent
226c573c39
commit
5878235e7d
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue