From 74faf8d0e2728a4845559e049e664106e7dfaf58 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 16 Aug 2022 18:38:46 +0000 Subject: [PATCH] queue: do not enqueue unsolved nodes as part of a solution --- libpkgconf/queue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index b97b9dc..91e9a30 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -213,10 +213,13 @@ next: { pkgconf_dependency_t *dep = deps[i]; + if (dep->match == NULL) + continue; + memset(&dep->iter, '\0', sizeof (dep->iter)); pkgconf_node_insert(&dep->iter, dep, list); - PKGCONF_TRACE(client, "slot %zu: dep %s matched to %p<%s> hits %lu", i, dep->package, dep->match, dep->match == NULL ? "NULL" : dep->match->id, dep->match->hits); + PKGCONF_TRACE(client, "slot %zu: dep %s matched to %p<%s> hits %lu", i, dep->package, dep->match, dep->match->id, dep->match->hits); } free(deps);