aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-01 10:49:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-01 10:49:53 +0100
commit002633d4ce032a7bfdde6baf4ce07ff213b8b861 (patch)
tree360a1b1745631317b03fdd4c626e71f0118fec05 /src
parentd1537e6052a3d545e9b63934f76b6ec5e5475157 (diff)
downloadrspamd-002633d4ce032a7bfdde6baf4ce07ff213b8b861.tar.gz
rspamd-002633d4ce032a7bfdde6baf4ce07ff213b8b861.zip
Initialize values for atom priorities.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/expression.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c
index 2d52419fa..359bc2af7 100644
--- a/src/libutil/expression.c
+++ b/src/libutil/expression.c
@@ -408,6 +408,8 @@ rspamd_ast_priority_traverse (GNode *node, gpointer d)
elt->priority = RSPAMD_EXPRESSION_MAX_PRIORITY -
expr->subr->priority (elt->p.atom);
}
+ elt->p.atom->hits = 0;
+ elt->p.atom->avg_ticks = 0.0;
}
}