mirror of
https://github.com/minetest/minetest.git
synced 2024-07-02 14:10:33 +02:00
lua: apply patch for "Parameter 'what' of 'debug.getinfo' cannot start with '>'"
This commit is contained in:
parent
d0a7dbe8d0
commit
3a1757693b
@ -101,6 +101,7 @@ static int db_getinfo (lua_State *L) {
|
||||
int arg;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
const char *options = luaL_optstring(L, arg+2, "flnSu");
|
||||
luaL_argcheck(L, options[0] != '>', arg + 2, "invalid option '>'");
|
||||
if (lua_isnumber(L, arg+1)) {
|
||||
if (!lua_getstack(L1, (int)lua_tointeger(L, arg+1), &ar)) {
|
||||
lua_pushnil(L); /* level out of range */
|
||||
|
Loading…
Reference in New Issue
Block a user