]> source.dussan.org Git - rspamd.git/commitdiff
Use portable macro to get global variable.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 8 Mar 2015 23:45:29 +0000 (23:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 8 Mar 2015 23:45:29 +0000 (23:45 +0000)
test/rspamd_lua_test.c

index bdc23e91ca7400727193bbb7acb54ba700f4bc6a..b129f1b518216958cba06092269ebf46cf525073 100644 (file)
@@ -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);