mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 15:10:49 +00:00
Fix potential de-referencing null pointer in SDL_EVDEV_kbd_keycode()
This commit is contained in:
parent
b44d3699b1
commit
03e69fbc0c
1 changed files with 2 additions and 2 deletions
|
|
@ -475,12 +475,12 @@ void SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *kbd, unsigned int keycode,
|
|||
unsigned int final_key_state;
|
||||
unsigned int map_from_key_sym;
|
||||
|
||||
key_map = *kbd->key_map;
|
||||
|
||||
if (kbd == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
key_map = *kbd->key_map;
|
||||
|
||||
kbd->rep = (down == 2);
|
||||
|
||||
if (keycode < NUM_KEYS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue