aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_lua_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-08 23:45:29 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-08 23:45:29 +0000
commitdabf6b6e482e06b5b51177fa50e903c231c16b2f (patch)
tree63b06a56e888d83d58b26eb2b0bd1f71425c3922 /test/rspamd_lua_test.c
parentac69ad95af2dd73db0ac6a21fdf4bc386034b576 (diff)
downloadrspamd-dabf6b6e482e06b5b51177fa50e903c231c16b2f.tar.gz
rspamd-dabf6b6e482e06b5b51177fa50e903c231c16b2f.zip
Use portable macro to get global variable.
Diffstat (limited to 'test/rspamd_lua_test.c')
-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);