aboutsummaryrefslogtreecommitdiffstats
path: root/src/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 20:22:17 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 20:22:17 +0400
commitbe9387183439cea52013c97fa1e047c1d7ac472f (patch)
tree827a7ac661d8380a2e4bcf46803c37dec1d5f8dc /src/symbols_cache.c
parent205cb6049d86f74707949ac6a3b2de64afe2850a (diff)
downloadrspamd-be9387183439cea52013c97fa1e047c1d7ac472f.tar.gz
rspamd-be9387183439cea52013c97fa1e047c1d7ac472f.zip
* Make valgrind happy about comparing symbols
Diffstat (limited to 'src/symbols_cache.c')
-rw-r--r--src/symbols_cache.c2
1 files changed, 1 insertions, 1 deletions
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;