X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/f5ec3b68c582138acce7c5a93e473dde50ab8354..677cbcbcea1539512009f0ba11dc93d5c97df830:/apt-pkg/tagfile.cc diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc index d58409bfb..da520ed81 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.35 2002/11/06 06:43:14 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; @@ -197,7 +197,7 @@ bool pkgTagSection::Scan(const char *Start,unsigned long MaxLength) if (Stop == 0) return false; - for (; Stop+1 < End && Stop[1] == '\r'; Stop++); + for (; Stop+1 < End && Stop[1] == '\r'; Stop++); // Double newline marks the end of the record if (Stop+1 < End && Stop[1] == '\n')