queue: don't flatten nothing

If after removing duplicates there are no deps to flatten, return early.
Dylan Baker 2022-08-02 11:51:59 -07:00
parent 02710ffdef
commit 62608dfe02
1 changed files with 3 additions and 0 deletions

View File

@ -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 */