From: Vsevolod Stakhov Date: Sat, 15 Oct 2016 13:31:58 +0000 (+0100) Subject: [Minor] Fix setting of table argument X-Git-Tag: 1.4.0~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d4dd4e45e21f7e1d4034fee516eb7b78189536;p=thirdparty%2Frspamd.git [Minor] Fix setting of table argument --- diff --git a/src/lua/lua_fann.c b/src/lua/lua_fann.c index 39bcb146f0..1d02fe3f0a 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);