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:
parent
634520a70a
commit
e5de0abfb4
1
luaa.c
1
luaa.c
|
@ -815,6 +815,7 @@ luaA_init(xdgHandle* xdg)
|
||||||
lua_pushliteral(L, ";" AWESOME_LUA_LIB_PATH "/?/init.lua");
|
lua_pushliteral(L, ";" AWESOME_LUA_LIB_PATH "/?/init.lua");
|
||||||
lua_concat(L, 3); /* concatenate with package.path */
|
lua_concat(L, 3); /* concatenate with package.path */
|
||||||
lua_setfield(L, 1, "path"); /* package.path = "concatenated string" */
|
lua_setfield(L, 1, "path"); /* package.path = "concatenated string" */
|
||||||
|
lua_pop(L, 1); /* pop "package" */
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
Loading…
Reference in New Issue