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; }