From c2a460c30d80597f7de3484e074354d60c7e60e5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Feb 2017 13:15:59 +0000 Subject: [PATCH] [Minor] Zero structure before using --- src/libmime/email_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5