From: n3rdopolis Date: Fri, 5 Jan 2024 15:42:39 +0000 (+0000) Subject: ply-input-device: Fix 'may be used uninitialized' warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5878235e7dda69d8f0c2a7f0e2181fe4f3ca9961;p=thirdparty%2Fplymouth.git 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. --- diff --git a/src/libply-splash-core/ply-input-device.c b/src/libply-splash-core/ply-input-device.c index 2e8a5a90..643ac34a 100644 --- a/src/libply-splash-core/ply-input-device.c +++ b/src/libply-splash-core/ply-input-device.c @@ -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