diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-09 13:15:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-09 13:15:59 +0000 |
commit | c2a460c30d80597f7de3484e074354d60c7e60e5 (patch) | |
tree | 5aa96c2b9d4a80ddcc8a683e27e4b5087f6246fe /src/libmime/email_addr.c | |
parent | cdffb78f605ead15aedf403a13862215cb013923 (diff) | |
download | rspamd-c2a460c30d80597f7de3484e074354d60c7e60e5.tar.gz rspamd-c2a460c30d80597f7de3484e074354d60c7e60e5.zip |
[Minor] Zero structure before using
Diffstat (limited to 'src/libmime/email_addr.c')
-rw-r--r-- | src/libmime/email_addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |