diff options
| author | Attila Fidan <dev@print0.net> | 2025-01-30 09:39:31 +0000 |
|---|---|---|
| committer | Attila Fidan <dev@print0.net> | 2025-01-30 10:58:19 +0000 |
| commit | 5286808b6cd439c0442a76169d7a58b1b7e71e8c (patch) | |
| tree | 69d08d140f5aea8f65752a373941aa860a2c48a1 /input.c | |
| parent | forgejo: config: render as .ini, instead of the default markdown (diff) | |
input: close fd on no/unrecognized keymap format
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -527,6 +527,7 @@ keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard, /* Verify keymap is in a format we understand */ switch ((enum wl_keyboard_keymap_format)format) { case WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP: + close(fd); return; case WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1: @@ -534,6 +535,7 @@ keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard, default: LOG_WARN("unrecognized keymap format: %u", format); + close(fd); return; } |
