From: Vsevolod Stakhov Date: Thu, 15 Jul 2010 16:22:17 +0000 (+0400) Subject: * Make valgrind happy about comparing symbols X-Git-Tag: 0.3.1~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be9387183439cea52013c97fa1e047c1d7ac472f;p=rspamd.git * Make valgrind happy about comparing symbols --- diff --git a/src/symbols_cache.c b/src/symbols_cache.c index b22f85dc8..f8257a716 100644 --- a/src/symbols_cache.c +++ b/src/symbols_cache.c @@ -266,7 +266,7 @@ register_symbol (struct symbols_cache **cache, const char *name, double weight, } item = memory_pool_alloc0 (pcache->static_pool, sizeof (struct cache_item)); - item->s = memory_pool_alloc (pcache->static_pool, sizeof (struct saved_cache_item)); + item->s = memory_pool_alloc0 (pcache->static_pool, sizeof (struct saved_cache_item)); g_strlcpy (item->s->symbol, name, sizeof (item->s->symbol)); item->func = func; item->user_data = user_data;