From 2b310c570f7e16b047d8ac4d6a6656fdb21a86ce Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 3 Aug 2022 16:22:14 -0700 Subject: [PATCH] queue: when flattening do nothing if the flattened deps are empty --- libpkgconf/queue.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index 7e1d011..13f93e4 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -194,6 +194,9 @@ next: pkgconf_pkg_unref(client, pkg); } + if (deps == NULL) + return; + qsort(deps, dep_count, sizeof (void *), dep_sort_cmp); /* zero the list and start readding */