]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Zero structure before using
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 9 Feb 2017 13:15:59 +0000 (13:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 9 Feb 2017 13:15:59 +0000 (13:15 +0000)
src/libmime/email_addr.c

index 368b31d34a261c62a4727b79f9cab4bfc690adfc..f9fe179530262cae102b4baa2f2732add0d6b5cd 100644 (file)
@@ -124,7 +124,7 @@ rspamd_email_address_add (rspamd_mempool_t *pool,
        struct rspamd_email_address *elt;
        guint nlen;
 
-       elt = g_slice_alloc (sizeof (*elt));
+       elt = g_slice_alloc0 (sizeof (*elt));
 
        if (addr != NULL) {
                memcpy (elt, addr, sizeof (*addr));