From e39ed59797e049c9e6ed2caf53cb33a159f26961 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 23 Mar 2014 19:29:04 +0100 Subject: [PATCH] awesome.startup_errors: Never emit debug::index::miss Signed-off-by: Uli Schlachter --- luaa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luaa.c b/luaa.c index 8af1dc01..8def66c7 100644 --- a/luaa.c +++ b/luaa.c @@ -242,8 +242,10 @@ luaA_awesome_index(lua_State *L) return 1; } - if(A_STREQ(buf, "startup_errors") && globalconf.startup_errors.len != 0) + if(A_STREQ(buf, "startup_errors")) { + if (globalconf.startup_errors.len == 0) + return 0; lua_pushstring(L, globalconf.startup_errors.s); return 1; }