summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:59:19 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:59:19 +0000
commit613f9499d80ad290877979e48dbc0e1d48f70618 (patch)
tree7de59c48a87eeed1bf6364895c5daa9b9c0bd477 /apt-pkg/tagfile.cc
parent4541554303b200955019aa477da3db9a9997ac77 (diff)
Fix nother end of file parsing bug
Author: jgg Date: 2002-07-08 03:39:06 GMT Fix nother end of file parsing bug
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r--apt-pkg/tagfile.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc
index d58409bfb..e3d83d334 100644
--- a/apt-pkg/tagfile.cc
+++ b/apt-pkg/tagfile.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: tagfile.cc,v 1.33 2002/05/30 04:19:48 jgg Exp $
+// $Id: tagfile.cc,v 1.34 2002/07/08 03:39:06 jgg Exp $
/* ######################################################################
Fast scanner for RFC-822 type header information
@@ -70,7 +70,7 @@ bool pkgTagFile::Step(pkgTagSection &Tag)
if (Tag.Scan(Start,End - Start) == false)
return _error->Error(_("Unable to parse package file %s (1)"),
Fd.Name().c_str());
- }
+ }
Start += Tag.size();
iOffset += Tag.size();
@@ -85,7 +85,7 @@ bool pkgTagFile::Step(pkgTagSection &Tag)
bool pkgTagFile::Fill()
{
unsigned long EndSize = End - Start;
- unsigned long Actual;
+ unsigned long Actual = 0;
memmove(Buffer,Start,EndSize);
Start = Buffer;