]> source.dussan.org Git - rspamd.git/commitdiff
Indexes start from 1 in lua!!!!
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Sep 2015 14:09:03 +0000 (15:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Sep 2015 14:09:03 +0000 (15:09 +0100)
src/lua/lua_task.c

index 4c323a1727828a2997a0f8a2c0e2bbeab9e5345e..1ec22a67eb23f66df8d95ea4e1a23855e56c3d4c 100644 (file)
@@ -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);