diff options
-rw-r--r-- | src/symbols_cache.c | 2 |
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; |