awesome.startup_errors: Never emit debug::index::miss

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2014-03-23 19:29:04 +01:00
parent 88facb7f57
commit e39ed59797
1 changed files with 3 additions and 1 deletions

4
luaa.c
View File

@ -242,8 +242,10 @@ luaA_awesome_index(lua_State *L)
return 1; 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); lua_pushstring(L, globalconf.startup_errors.s);
return 1; return 1;
} }