diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-08 23:45:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-08 23:45:29 +0000 |
commit | dabf6b6e482e06b5b51177fa50e903c231c16b2f (patch) | |
tree | 63b06a56e888d83d58b26eb2b0bd1f71425c3922 /test/rspamd_lua_test.c | |
parent | ac69ad95af2dd73db0ac6a21fdf4bc386034b576 (diff) | |
download | rspamd-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.c | 2 |
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); |