summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:43 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:43 +0000
commit9972233dc1653084ff7c82986cc667cf6877c4ea (patch)
tree919e664275f1215cb522b4cccb6feda4cb9ab109
parentf292686be49d32fdfecc8e386a3d5b4865b2f913 (diff)
Fixed segfault bug
Author: jgg Date: 1999-09-09 06:08:45 GMT Fixed segfault bug
-rw-r--r--apt-pkg/depcache.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index dc03ef68c..7b7d0b29d 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: depcache.cc,v 1.19 1999/07/10 04:58:42 jgg Exp $
+// $Id: depcache.cc,v 1.20 1999/09/09 06:08:45 jgg Exp $
/* ######################################################################
Dependency Cache - Caches Dependency information.
@@ -508,9 +508,10 @@ void pkgDepCache::Update(PkgIterator const &Pkg)
Update(P.ParentPkg().RevDependsList());
// Update the provides map for the candidate ver
- for (PrvIterator P = PkgState[Pkg->ID].CandidateVerIter(*this).ProvidesList();
- P.end() != true; P++)
- Update(P.ParentPkg().RevDependsList());
+ if (PkgState[Pkg->ID].CandidateVer != 0)
+ for (PrvIterator P = PkgState[Pkg->ID].CandidateVerIter(*this).ProvidesList();
+ P.end() != true; P++)
+ Update(P.ParentPkg().RevDependsList());
}
/*}}}*/