From: Vsevolod Stakhov Date: Sat, 17 Mar 2018 16:38:21 +0000 (+0000) Subject: [Minor] Another id==0 issue X-Git-Tag: 1.7.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f26ac3c80484ba541633906f97be8a33b4cdbd2d;p=thirdparty%2Frspamd.git [Minor] Another id==0 issue --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 18593fa5c7..d86a2b6f42 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -2330,7 +2330,7 @@ rspamd_symbols_cache_disable_symbol_checkpoint (struct rspamd_task *task, id = rspamd_symbols_cache_find_symbol_parent (cache, symbol); - if (id > 0) { + if (id >= 0) { /* Set executed and finished flags */ item = g_ptr_array_index (cache->items_by_id, id); @@ -2362,7 +2362,7 @@ rspamd_symbols_cache_enable_symbol_checkpoint (struct rspamd_task *task, id = rspamd_symbols_cache_find_symbol_parent (cache, symbol); - if (id > 0) { + if (id >= 0) { /* Set executed and finished flags */ item = g_ptr_array_index (cache->items_by_id, id);