X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c08447c8eef91499920ca51276313526888939ec..aac2e51078714d5130861035e9b3b5d4d6b84471:/apt-pkg/tagfile.cc diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index 9763d96a3..79ff18de4 100644 --- a/apt-pkg/tagfile.cc +++ b/apt-pkg/tagfile.cc @@ -98,6 +98,7 @@ bool pkgTagFile::Jump(pkgTagSection &Tag,unsigned long Offset) iOffset = Offset; Start = Buffer + iOffset; + // Start != End is a special case to not fail on empty TagFiles if (Start != End && Tag.Scan(Start,End - Start) == false) return _error->Error(_("Unable to parse package file %s (2)"),Fd.Name().c_str());