aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-23 08:24:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-23 08:24:51 +0100
commitbf89a37720fa18b81ea4933871adac6fd7fd93eb (patch)
treec0064e81f2e408ea43c5357181376f2c3d95928a /src/libutil
parentd3654b12df6866d4d3949e4f8124a9095f6c3c66 (diff)
downloadrspamd-bf89a37720fa18b81ea4933871adac6fd7fd93eb.tar.gz
rspamd-bf89a37720fa18b81ea4933871adac6fd7fd93eb.zip
[Minor] Reset old stats
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/mem_pool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c
index 7e3db68c1..4861a2127 100644
--- a/src/libutil/mem_pool.c
+++ b/src/libutil/mem_pool.c
@@ -629,6 +629,8 @@ rspamd_mempool_adjust_entry (struct rspamd_mempool_entry_point *e)
/* We still want to grow */
e->cur_suggestion *= (1 + (((double)sel_pos) / e->cur_suggestion)) * 1.5;
}
+
+ memset (e->elts, 0, sizeof (e->elts));
}
void