From: Vsevolod Stakhov Date: Thu, 17 Sep 2015 14:09:03 +0000 (+0100) Subject: Indexes start from 1 in lua!!!! X-Git-Tag: 1.0.0~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0582b6ef8c449f03e2fad49f92a84d8e3e05d707;p=rspamd.git Indexes start from 1 in lua!!!! --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 4c323a172..1ec22a67e 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1598,7 +1598,7 @@ lua_push_symbol_result (lua_State *L, metric_res = g_hash_table_lookup (task->results, metric->name); if (metric_res) { if ((s = g_hash_table_lookup (metric_res->symbols, symbol)) != NULL) { - j = 0; + j = 1; lua_newtable (L); lua_pushstring (L, "metric"); lua_pushstring (L, metric->name);