summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dselect/pkglist.cc2
-rw-r--r--src/enquiry.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/dselect/pkglist.cc b/dselect/pkglist.cc
index a6f006de0..e2b249217 100644
--- a/dselect/pkglist.cc
+++ b/dselect/pkglist.cc
@@ -417,6 +417,8 @@ packagelist::packagelist(keybindings *kb) : baselist(kb) {
table[nitems]= state;
nitems++;
}
+ iterpkgend(iter);
+
if (!nitems)
ohshit(_("There are no packages."));
recursive= 0;
diff --git a/src/enquiry.c b/src/enquiry.c
index ee8938d9e..83714a009 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -347,6 +347,8 @@ void predeppackage(const char *const *argv) {
pkg->clientdata->istobe= itb_normal;
/* If dep is NULL we go and get the next package. */
}
+ iterpkgend(it);
+
if (!dep) exit(1); /* Not found */
assert(pkg);
startpkg= pkg;