]> git.saurik.com Git - apt.git/commitdiff
Fix nother end of file parsing bug
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:19 +0000 (16:59 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:59:19 +0000 (16:59 +0000)
Author: jgg
Date: 2002-07-08 03:39:06 GMT
Fix nother end of file parsing bug

apt-pkg/tagfile.cc

index d58409bfbe3029d0f14f889171196ea20d886d9d..e3d83d3346e53a6911935487de54cccf1d3be2ba 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
 // -*- 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
 /* ######################################################################
 
    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());
       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();
 
    Start += Tag.size();
    iOffset += Tag.size();
 
@@ -85,7 +85,7 @@ bool pkgTagFile::Step(pkgTagSection &Tag)
 bool pkgTagFile::Fill()
 {
    unsigned long EndSize = End - Start;
 bool pkgTagFile::Fill()
 {
    unsigned long EndSize = End - Start;
-   unsigned long Actual;
+   unsigned long Actual = 0;
    
    memmove(Buffer,Start,EndSize);
    Start = Buffer;
    
    memmove(Buffer,Start,EndSize);
    Start = Buffer;