]> source.dussan.org Git - rspamd.git/commitdiff
* Make valgrind happy about comparing symbols
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 15 Jul 2010 16:22:17 +0000 (20:22 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 15 Jul 2010 16:22:17 +0000 (20:22 +0400)
src/symbols_cache.c

index b22f85dc89fedb7869453eafb2f896eba907948d..f8257a7168aeca6d3ff511d853ac398334b86ef0 100644 (file)
@@ -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;