From: Vsevolod Stakhov Date: Mon, 23 Jul 2018 20:28:34 +0000 (+0100) Subject: [Minor] Fix logical order of function invocation X-Git-Tag: 1.7.9~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=396ad52afb3b2c49fc98ab12240d400cbc10a390;p=thirdparty%2Frspamd.git [Minor] Fix logical order of function invocation --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 9bea3a87a1..41783057b5 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -479,8 +479,6 @@ rspamd_symbols_cache_post_init (struct symbols_cache *cache) gint i, j; gint id; - rspamd_symbols_cache_resort (cache); - cur = cache->delayed_deps; while (cur) { ddep = cur->data; @@ -582,6 +580,8 @@ rspamd_symbols_cache_post_init (struct symbols_cache *cache) g_ptr_array_sort_with_data (cache->prefilters, prefilters_cmp, cache); g_ptr_array_sort_with_data (cache->postfilters, postfilters_cmp, cache); g_ptr_array_sort_with_data (cache->idempotent, postfilters_cmp, cache); + + rspamd_symbols_cache_resort (cache); } static gboolean