From bb07552e94fa088a648c0f380373dfa77c8db9cb Mon Sep 17 00:00:00 2001 From: batrick Date: Fri, 20 Jun 2008 07:28:58 +0000 Subject: [PATCH] Changed a bad reference to the table.remove function for the mutex code. The main branch does not yet have the changes to init that includes all Lua functions being in the Registry with shorthand names. --- nse_nmaplib.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index 52dddb787..340e20855 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -67,7 +67,9 @@ static int aux_mutex (lua_State *L) lua_pushthread(L); if (!lua_equal(L, -1, lua_upvalueindex(2))) luaL_error(L, "%s", "Do not have a lock on this mutex"); - lua_getfield(L, LUA_REGISTRYINDEX, "table.remove"); + lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED"); + lua_getfield(L, -1, "table"); + lua_getfield(L, -1, "remove"); lua_pushvalue(L, lua_upvalueindex(1)); lua_pushinteger(L, 1); lua_call(L, 2, 1);