summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-07-18 13:48:46 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-07-18 13:48:46 +0200
commit275024e9ae6c827ebb664bd1c0c3264bcff343c0 (patch)
tree63c33ef0ff3c5e9c3f1929fb068f9568798f76e5 /apt-pkg
parent7089f4563376553e40af1cd0c71ea8813e707a25 (diff)
* apt-pkg/packagemanager.cc:
- do not segfault if nothing can be configured to statisfy a pre-depends (e.g. in a pre-depends loop) (Closes: #681958)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/packagemanager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc
index 46fc499c6..b93bf6ab9 100644
--- a/apt-pkg/packagemanager.cc
+++ b/apt-pkg/packagemanager.cc
@@ -643,7 +643,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
}
// Look for something that could be configured.
- for (DepIterator Cur = Start; Bad == true; ++Cur)
+ for (DepIterator Cur = Start; Bad == true && Cur.end() == false; ++Cur)
{
SPtrArray<Version *> VList = Cur.AllTargets();
for (Version **I = VList; *I != 0; ++I)