diff options
author | 2024-06-28 21:51:22 +0200 | |
---|---|---|
committer | 2024-06-28 21:51:22 +0200 | |
commit | 40f8fab17e2cb24ada3ef396248df644ca34d671 (patch) | |
tree | 5ef8094b5a80c59aec4d5200e03efdb49d93cbfe /qpkg.c | |
parent | *: remove i18n/gettext support (diff) | |
download | portage-utils-40f8fab17e2cb24ada3ef396248df644ca34d671.tar.gz portage-utils-40f8fab17e2cb24ada3ef396248df644ca34d671.tar.bz2 portage-utils-40f8fab17e2cb24ada3ef396248df644ca34d671.zip |
fix Coverity issues
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qpkg.c')
-rw-r--r-- | qpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,9 +101,9 @@ qpkg_clean(char *dirp) if (known_pkgs != NULL) { /* check which binpkgs exist in the known_pkgs (vdb or trees), such * that the remainder is what we would clean */ - array_for_each(bins, n, binatomstr) { + array_for_each_rev(bins, n, binatomstr) { if (contains_set(binatomstr, known_pkgs)) - xarraydelete_ptr(bins, n--); + xarraydelete_ptr(bins, n); } free_set(known_pkgs); |