forked from ariadne/pkgconf
queue: don't flatten nothing
If after removing duplicates there are no deps to flatten, return early.
parent
02710ffdef
commit
62608dfe02
|
@ -204,6 +204,9 @@ next:
|
||||||
pkgconf_pkg_unref(client, pkg);
|
pkgconf_pkg_unref(client, pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (deps == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
qsort(deps, dep_count, sizeof (void *), dep_sort_cmp);
|
qsort(deps, dep_count, sizeof (void *), dep_sort_cmp);
|
||||||
|
|
||||||
/* zero the list and start readding */
|
/* zero the list and start readding */
|
||||||
|
|
Loading…
Reference in New Issue