aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-27 14:46:36 +0100
committerGitHub <noreply@github.com>2017-10-27 14:46:36 +0100
commit5b12e0142a38c8974e4125232bb19454eae214e4 (patch)
tree88c9ab5eafa8dceb89f841b20c6f4abb73db3f92
parent48dafdabc1240932db01252279393fdfa18acc14 (diff)
parent31032fe918836b2f06237285435ac91bf264a504 (diff)
downloadrspamd-5b12e0142a38c8974e4125232bb19454eae214e4.tar.gz
rspamd-5b12e0142a38c8974e4125232bb19454eae214e4.zip
Merge pull request #1888 from fatalbanana/docstr
[Fix] Table parameter for rspamd_config:add_doc()
-rw-r--r--src/lua/lua_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 17eeeaf29..4aec7ff5a 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -2782,7 +2782,7 @@ lua_config_add_doc (lua_State *L)
if (cfg && option && doc_string) {
if (lua_type (L, 5) == LUA_TTABLE) {
- if (!rspamd_lua_parse_table_arguments (L, 2, &err,
+ if (!rspamd_lua_parse_table_arguments (L, 5, &err,
"type=S;default=S;required=B",
&type_str, &default_value, &required)) {
msg_err_config ("cannot get parameters list: %e", err);