diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index 1ef8c07..9149683 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -204,6 +204,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 */