commit 5c9d86c: [Minor] Another stupid misprint

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jul 4 20:14:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-04 21:10:47 +0100
URL: https://github.com/rspamd/rspamd/commit/5c9d86cd9630a3b689198cfc0cb128541355c3a7 (HEAD -> master)

[Minor] Another stupid misprint

---
 src/libserver/rspamd_symcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 4bc2a8522..d6fa726c6 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -1309,7 +1309,7 @@ rspamd_symcache_validate_cb (gpointer k, gpointer v, gpointer ud)
 
 	if (item->is_virtual) {
 		if (!(item->type & SYMBOL_TYPE_GHOST)) {
-			g_assert (item->specific.virtual.parent != 1);
+			g_assert (item->specific.virtual.parent != -1);
 			g_assert (item->specific.virtual.parent < (gint) cache->items_by_id->len);
 			parent = g_ptr_array_index (cache->items_by_id,
 					item->specific.virtual.parent);


More information about the Commits mailing list