diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-09 15:47:50 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-06-09 15:47:50 +0200 |
commit | c08447c8eef91499920ca51276313526888939ec (patch) | |
tree | f405b3eb2b6b8eb7df0f13b4da991cd8d6248ffd /apt-pkg/tagfile.cc | |
parent | d4c5f11f8ef619ec56ae1e532416bb3817442b1c (diff) | |
download | apt-c08447c8eef91499920ca51276313526888939ec.tar.gz |
* merge the patch from Steinar
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r-- | apt-pkg/tagfile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index dc1ba3f9e..9763d96a3 100644 --- a/apt-pkg/tagfile.cc +++ b/apt-pkg/tagfile.cc @@ -98,7 +98,7 @@ bool pkgTagFile::Jump(pkgTagSection &Tag,unsigned long Offset) iOffset = Offset; Start = Buffer + iOffset; - if (Tag.Scan(Start,End - Start) == false) + if (Start != End && Tag.Scan(Start,End - Start) == false) return _error->Error(_("Unable to parse package file %s (2)"),Fd.Name().c_str()); return true; |