Skip to content
Snippets Groups Projects
Commit 81b00c96 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

input-linux: fix Coverity warning


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Message-id: 1458129049-12484-1-git-send-email-kraxel@redhat.com
parent 0e066b2c
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,13 @@ static void input_linux_event_keyboard(void *opaque)
*/
continue;
}
if (event.code >= KEY_CNT) {
/*
* Should not happen. But better safe than sorry,
* and we make Coverity happy too.
*/
continue;
}
/* keep track of key state */
if (!il->keydown[event.code] && event.value) {
il->keydown[event.code] = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment