summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-06-09 15:48:40 +0200
committerMichael Vogt <egon@bottom>2006-06-09 15:48:40 +0200
commitab1bdcf7fb907555ee2c42430eaed51feba6910c (patch)
treebc16a85c6cc668debe3c8f37bddb70b6b97c78b9 /apt-pkg/tagfile.cc
parent8c64fc132ce0743f02b4d7216a3646a8fb93d8b6 (diff)
parentc08447c8eef91499920ca51276313526888939ec (diff)
* merged from mainline
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r--apt-pkg/tagfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc
index fc020436c..426174eb1 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;