aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-23 13:53:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-23 13:53:19 +0100
commitd5e2be6e561620128426dde61bbd0b9b24fc26bb (patch)
tree62274396e5d1e32486f30c34e8d3331cff7c39ee
parente4485c94737dd714e76a1de71adf86f08a158217 (diff)
downloadrspamd-d5e2be6e561620128426dde61bbd0b9b24fc26bb.tar.gz
rspamd-d5e2be6e561620128426dde61bbd0b9b24fc26bb.zip
Fix symbols in legacy output.
-rw-r--r--src/libmime/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/protocol.c b/src/libmime/protocol.c
index 8a5c3f0df..907757ea6 100644
--- a/src/libmime/protocol.c
+++ b/src/libmime/protocol.c
@@ -678,6 +678,7 @@ rspamd_ucl_tolegacy_output (struct rspamd_task *task, ucl_object_t *top, GString
}
symbols = ucl_object_find_key (metric, "symbols");
+ iter = NULL;
while ((elt = ucl_iterate_object (symbols, &iter, true)) != NULL) {
const ucl_object_t *sym_score;
sym_score = ucl_object_find_key (elt, "score");