diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-01 10:49:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-01 10:49:53 +0100 |
commit | 002633d4ce032a7bfdde6baf4ce07ff213b8b861 (patch) | |
tree | 360a1b1745631317b03fdd4c626e71f0118fec05 /src | |
parent | d1537e6052a3d545e9b63934f76b6ec5e5475157 (diff) | |
download | rspamd-002633d4ce032a7bfdde6baf4ce07ff213b8b861.tar.gz rspamd-002633d4ce032a7bfdde6baf4ce07ff213b8b861.zip |
Initialize values for atom priorities.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/expression.c | 2 |
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; } } |