queue: when flattening do nothing if the flattened deps are empty

bsdstubs-errno
Dylan Baker 2022-08-03 16:22:14 -07:00
parent 6609001114
commit e4d1c8ffa5
1 changed files with 3 additions and 0 deletions

View File

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