From: Vsevolod Stakhov Date: Thu, 31 Mar 2016 11:17:02 +0000 (+0100) Subject: [Fix] Fix saving of regexp atoms strings X-Git-Tag: 1.2.2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e2f7af54b548da280c519badb7f646c330ef7da;p=rspamd.git [Fix] Fix saving of regexp atoms strings --- 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;