aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_lua_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rspamd_lua_test.c b/test/rspamd_lua_test.c
index bdc23e91c..b129f1b51 100644
--- a/test/rspamd_lua_test.c
+++ b/test/rspamd_lua_test.c
@@ -35,7 +35,7 @@ traceback (lua_State *L)
return 1;
}
- lua_getfield (L, LUA_GLOBALSINDEX, "debug");
+ lua_getglobal (L, "debug");
if (!lua_istable(L, -1)) {
lua_pop(L, 1);