From 84d49083c76ed96f97308b865af8fc85c3953d08 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Mon, 6 Jan 2020 16:47:57 +0000 Subject: [PATCH] Add missing return on error in a few places --- kiwmi/luak/kiwmi_keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiwmi/luak/kiwmi_keyboard.c b/kiwmi/luak/kiwmi_keyboard.c index 3f48fa9..fbfd77a 100644 --- a/kiwmi/luak/kiwmi_keyboard.c +++ b/kiwmi/luak/kiwmi_keyboard.c @@ -95,12 +95,14 @@ kiwmi_keyboard_on_key_down_or_up_notify( if (lua_pcall(L, 1, 1, 0)) { wlr_log(WLR_ERROR, "%s", lua_tostring(L, -1)); lua_pop(L, 1); + return; } lua_setfield(L, -2, "keyboard"); if (lua_pcall(L, 1, 1, 0)) { wlr_log(WLR_ERROR, "%s", lua_tostring(L, -1)); lua_pop(L, 1); + return; } event->handled |= lua_toboolean(L, -1);