From ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 30 May 2018 16:30:44 +0200 Subject: Update embedded Lua to 5.1.5 (#7387) --- lib/lua/src/ldblib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/lua/src/ldblib.c') diff --git a/lib/lua/src/ldblib.c b/lib/lua/src/ldblib.c index 67de1222a..2027eda59 100644 --- a/lib/lua/src/ldblib.c +++ b/lib/lua/src/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.104.1.3 2008/01/21 13:11:21 roberto Exp $ +** $Id: ldblib.c,v 1.104.1.4 2009/08/04 18:50:18 roberto Exp $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -45,6 +45,7 @@ static int db_setmetatable (lua_State *L) { static int db_getfenv (lua_State *L) { + luaL_checkany(L, 1); lua_getfenv(L, 1); return 1; } -- cgit v1.2.3