diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-17 15:09:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-17 15:09:03 +0100 |
commit | 0582b6ef8c449f03e2fad49f92a84d8e3e05d707 (patch) | |
tree | 2207f1c38ca7c9233ad076b578588ae68f6a80d3 /src/lua | |
parent | ce3ecc6d36e9c235538cb41cbedeb7b5d154257f (diff) | |
download | rspamd-0582b6ef8c449f03e2fad49f92a84d8e3e05d707.tar.gz rspamd-0582b6ef8c449f03e2fad49f92a84d8e3e05d707.zip |
Indexes start from 1 in lua!!!!
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |