From 1bc9d234e5a61887a8b78a483a0e3a84b79bd277 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 10 Dec 2008 10:10:49 +0100 Subject: [PATCH] luaa: pop element if we do not call lua_next() Signed-off-by: Julien Danjou --- luaa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luaa.c b/luaa.c index 2bce875d..8db9925f 100644 --- a/luaa.c +++ b/luaa.c @@ -297,6 +297,8 @@ luaA_next(lua_State *L, int idx) } else if(lua_istable(L, idx)) return lua_next(L, idx); + /* remove the key */ + lua_pop(L, 1); return 0; }