]> source.dussan.org Git - rspamd.git/commitdiff
Zero dispatcher structure before using.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 8 Nov 2013 17:02:00 +0000 (17:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 8 Nov 2013 17:02:00 +0000 (17:02 +0000)
src/buffer.c

index 381d77cd219d20e8c84a4c91bb9668b33d5ff7ef..0985fed1055158f77563a0c6c7e56f388792b494 100644 (file)
@@ -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) {