summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-15 14:31:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-15 14:31:58 +0100
commit37d4dd4e45e21f7e1d4034fee516eb7b78189536 (patch)
tree357f9d16d8c229dee4d75344060d65ad82869957 /src
parentc5e504950a444472e7772f2cc4a18ee9f81b6bd8 (diff)
downloadrspamd-37d4dd4e45e21f7e1d4034fee516eb7b78189536.tar.gz
rspamd-37d4dd4e45e21f7e1d4034fee516eb7b78189536.zip
[Minor] Fix setting of table argument
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_fann.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_fann.c b/src/lua/lua_fann.c
index 39bcb146f..1d02fe3f0 100644
--- a/src/lua/lua_fann.c
+++ b/src/lua/lua_fann.c
@@ -542,7 +542,7 @@ lua_fann_get_layers (lua_State *L)
for (i = 0; i < nlayers; i ++) {
lua_pushnumber (L, layers[i]);
- lua_rawseti (L, -1, i + 1);
+ lua_rawseti (L, -2, i + 1);
}
g_free (layers);