From: Vsevolod Stakhov Date: Thu, 9 Feb 2017 13:15:59 +0000 (+0000) Subject: [Minor] Zero structure before using X-Git-Tag: 1.5.0~149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2a460c30d80597f7de3484e074354d60c7e60e5;p=rspamd.git [Minor] Zero structure before using --- diff --git a/src/libmime/email_addr.c b/src/libmime/email_addr.c index 368b31d34..f9fe17953 100644 --- a/src/libmime/email_addr.c +++ b/src/libmime/email_addr.c @@ -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));