summaryrefslogtreecommitdiff
path: root/src/ldblib.c
diff options
context:
space:
mode:
authorPeter Drahos <drahosp@gmail.com>2011-03-17 14:37:47 +0100
committerPeter Drahos <drahosp@gmail.com>2011-03-17 14:37:47 +0100
commit1c87c3327f66c33f5142e9aebd7a1b2dfd116238 (patch)
tree63d1d8a532b4ff6d3d41ee53e6e3755dd06d97a9 /src/ldblib.c
parenteb697165069fed8f6623b9bc9048d310f6cc68e0 (diff)
downloadlua-1c87c3327f66c33f5142e9aebd7a1b2dfd116238.tar.gz
Applied lua patch 5.1.4-3
Diffstat (limited to 'src/ldblib.c')
-rw-r--r--src/ldblib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ldblib.c b/src/ldblib.c
index 67de122..2027eda 100644
--- a/src/ldblib.c
+++ b/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;
}