From: Vsevolod Stakhov Date: Fri, 8 Nov 2013 17:02:00 +0000 (+0000) Subject: Zero dispatcher structure before using. X-Git-Tag: 0.6.0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026efc14226aa1804c0ad0d34e72855296806b89;p=thirdparty%2Frspamd.git Zero dispatcher structure before using. --- diff --git a/src/buffer.c b/src/buffer.c index 381d77cd21..0985fed105 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -564,7 +564,7 @@ rspamd_create_dispatcher (struct event_base *base, gint fd, enum io_policy polic return NULL; } - new = g_slice_alloc (sizeof (rspamd_io_dispatcher_t)); + new = g_slice_alloc0 (sizeof (rspamd_io_dispatcher_t)); new->pool = memory_pool_new (memory_pool_get_size ()); if (tv != NULL) {