summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.cc
diff options
context:
space:
mode:
authorbubulle@debian.org <>2006-06-21 07:15:48 +0200
committerbubulle@debian.org <>2006-06-21 07:15:48 +0200
commit448a52a3bedb707f7d17e68b9583ce1c280aec61 (patch)
tree89d69c007edff6cadc6cb0e236e7444591454bf6 /apt-pkg/tagfile.cc
parent089fa814167138727fe3ddaff345a30256e3ae37 (diff)
parentb90d7d855709c49a6d5faff0ac65b96fd15e4500 (diff)
Merge with Michael
Basque translation update
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r--apt-pkg/tagfile.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc
index dc1ba3f9e..79ff18de4 100644
--- a/apt-pkg/tagfile.cc
+++ b/apt-pkg/tagfile.cc
@@ -98,7 +98,8 @@ bool pkgTagFile::Jump(pkgTagSection &Tag,unsigned long Offset)
iOffset = Offset;
Start = Buffer + iOffset;
- if (Tag.Scan(Start,End - Start) == false)
+ // 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());
return true;