Commit 90c91d6c authored by Mateusz Gozdek's avatar Mateusz Gozdek Committed by Patrick
Browse files

plugins/lua/lua.c: fix segfault on lua_pop with Lua 5.4.3



Closes #2558
Co-authored-by: default avatar"Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Signed-off-by: default avatarMateusz Gozdek <mgozdekof@gmail.com>
parent 090fd29a
......@@ -1189,11 +1189,11 @@ static void patch_clibs(lua_State *L)
if(lua_type(L, -2) == LUA_TLIGHTUSERDATA && lua_type(L, -1) == LUA_TTABLE)
{
lua_setfield(L, LUA_REGISTRYINDEX, "_CLIBS");
lua_pop(L, 1);
break;
}
lua_pop(L, 1);
}
lua_pop(L, 1);
}
static GPtrArray *scripts;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment