]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debrecords.cc
fix 'Dead assignment' by dropping unneeded boolean
[apt.git] / apt-pkg / deb / debrecords.cc
index 326102d08e2a7b6a1ced59dbe31d7aef226286f0..d78a7e2e0cd4394005f00238f8d1a54ba684c94f 100644 (file)
@@ -42,10 +42,14 @@ debRecordParser::debRecordParser(string FileName,pkgCache &Cache) :
 // RecordParser::Jump - Jump to a specific record                      /*{{{*/
 bool debRecordParser::Jump(pkgCache::VerFileIterator const &Ver)
 {
+   if (Ver.end() == true)
+      return false;
    return Tags.Jump(Section,Ver->Offset);
 }
 bool debRecordParser::Jump(pkgCache::DescFileIterator const &Desc)
 {
+   if (Desc.end() == true)
+      return false;
    return Tags.Jump(Section,Desc->Offset);
 }
                                                                        /*}}}*/