diff options
author | Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> | 2021-02-16 00:29:59 +0900 |
---|---|---|
committer | Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> | 2021-08-20 02:24:31 +0900 |
commit | cdedeb9f4f3168293a1efe0347da753b6f812a5e (patch) | |
tree | 9d03a82718d9e018b79991e46835ffaa6b552571 /src/libstat | |
parent | 4fc136a7f8d278a7da7e8e53b417379b24ccb7c6 (diff) | |
download | rspamd-cdedeb9f4f3168293a1efe0347da753b6f812a5e.tar.gz rspamd-cdedeb9f4f3168293a1efe0347da753b6f812a5e.zip |
fix compatibility with lua-5.4
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c index 17d0fdcc7..0c9ae2ed0 100644 --- a/src/libstat/stat_config.c +++ b/src/libstat/stat_config.c @@ -172,6 +172,9 @@ rspamd_stat_init (struct rspamd_config *cfg, struct ev_loop *ev_base) lua_tostring (L, -1)); } else { +#if LUA_VERSION_NUM >= 504 + lua_settop(L, -2); +#endif if (lua_type (L, -1) != LUA_TTABLE) { msg_err_config ("lua stat must return " "table and not %s", |