mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Fix redbean Log() in global scope (#230)
This commit is contained in:
parent
4daafef63a
commit
d8faadf44e
1 changed files with 1 additions and 1 deletions
|
@ -4911,7 +4911,7 @@ static int LuaLog(lua_State *L) {
|
|||
level = luaL_checkinteger(L, 1);
|
||||
if (LOGGABLE(level)) {
|
||||
msg = luaL_checkstring(L, 2);
|
||||
lua_getstack(L, 1, &ar);
|
||||
lua_getstack(L, 0, &ar);
|
||||
lua_getinfo(L, "nSl", &ar);
|
||||
if (!strcmp(ar.name, "main")) {
|
||||
module = strndup(effectivepath.p, effectivepath.n);
|
||||
|
|
Loading…
Add table
Reference in a new issue