]> git.saurik.com Git - apt-legacy.git/commitdiff
https://stackoverflow.com/questions/12351460/redeclaration-of-a-variable-in-a-for...
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 13 Aug 2018 06:21:53 +0000 (23:21 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 13 Aug 2018 06:21:53 +0000 (23:21 -0700)
apt-pkg/deb/deblistparser.cc

index 20739e0dfa9c679ff4a5c7491f38b630bfcea323..933215af04f44e10262ce0f3f360c69f5e35b2ff 100644 (file)
@@ -245,6 +245,7 @@ unsigned short debListParser::VersionHash()
       if (Section.Find(*I,Start,End) == false || End - Start >= (signed)sizeof(S))
         continue;
       
+    {
       /* Strip out any spaces from the text, this undoes dpkgs reformatting
          of certain fields. dpkg also has the rather interesting notion of
          reformatting depends operators < -> <= */
@@ -260,6 +261,7 @@ unsigned short debListParser::VersionHash()
       }
 
       Result = AddCRC16(Result,S,I - S);
+    }
    }
    
    return Result;