From 5e2f7af54b548da280c519badb7f646c330ef7da Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 31 Mar 2016 12:17:02 +0100 Subject: [PATCH] [Fix] Fix saving of regexp atoms strings --- src/libmime/mime_expressions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index 6b00a6133..f5e6d4e48 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -670,7 +670,7 @@ set: } } - a = rspamd_mempool_alloc (pool, sizeof (*a)); + a = rspamd_mempool_alloc0 (pool, sizeof (*a)); a->len = p - line; a->priority = 0; a->data = mime_atom; -- 2.39.5