Fix an unbalanced lua stack operation

luaA_init() left the global "package" table on the stack.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-07-23 16:18:14 +02:00
parent 634520a70a
commit e5de0abfb4
1 changed files with 1 additions and 0 deletions

1
luaa.c
View File

@ -815,6 +815,7 @@ luaA_init(xdgHandle* xdg)
lua_pushliteral(L, ";" AWESOME_LUA_LIB_PATH "/?/init.lua");
lua_concat(L, 3); /* concatenate with package.path */
lua_setfield(L, 1, "path"); /* package.path = "concatenated string" */
lua_pop(L, 1); /* pop "package" */
}
static bool