]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cacheiterators.h
* merged with the current debian version
[apt.git] / apt-pkg / cacheiterators.h
index 62d2695ddcf085723e663105d9c980b7480431eb..7c6f43351a130c7b0811c386e7a88003325e983b 100644 (file)
@@ -107,7 +107,7 @@ class pkgCache::VerIterator
    // Iteration
    void operator ++(int) {if (Ver != Owner->VerP) Ver = Owner->VerP + Ver->NextVer;};
    inline void operator ++() {operator ++(0);};
-   inline bool end() const {return Ver == Owner->VerP?true:false;};
+   inline bool end() const {return Owner == NULL || (Ver == Owner->VerP?true:false);};
    inline void operator =(const VerIterator &B) {Ver = B.Ver; Owner = B.Owner;};
    
    // Comparison