]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix saving of regexp atoms strings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Mar 2016 11:17:02 +0000 (12:17 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Mar 2016 11:17:02 +0000 (12:17 +0100)
src/libmime/mime_expressions.c

index 6b00a61339b617e13ec3dca69a0cbf83e0083b48..f5e6d4e48e3fddbd0a26dd074009c88e2da40077 100644 (file)
@@ -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;