]> source.dussan.org Git - rspamd.git/commitdiff
Another 'proper' place.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 26 Jul 2011 11:45:21 +0000 (15:45 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 26 Jul 2011 11:45:21 +0000 (15:45 +0400)
src/main.c

index ae0148aa3f34f675506c652f596abf2ff827881f..e37e830c0e931026e98dc25a123a44aa54afb7dc 100644 (file)
@@ -879,6 +879,7 @@ main (gint argc, gchar **argv, gchar **env)
        rspamd_main->cfg->cache = g_new0 (struct symbols_cache, 1);
        rspamd_main->cfg->cache->static_pool = memory_pool_new (memory_pool_get_size ());
        rspamd_main->cfg->cache->cfg = rspamd_main->cfg;
+       rspamd_main->cfg->cache->items_by_symbol = g_hash_table_new (g_str_hash, g_str_equal);
 
        /* Load config */
        if (! load_rspamd_config (rspamd_main->cfg, TRUE)) {