diff --git a/core/src/input.c b/core/src/input.c index a8f0e31..cf5c78f 100644 --- a/core/src/input.c +++ b/core/src/input.c @@ -7,6 +7,7 @@ static List _devices; static inline void _internal_open_keyboard() { InputDevice* keyboard = malloc(sizeof(InputDevice)); + ASSERT_RETURN(keyboard != NULL, , "Failed to allocate space for keyboard input device"); *keyboard = (InputDevice){ .listeners = NULL, .type = InputDevice_KBM,