From b62917f161e80c11d4c3265006102d8d2c1651c5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 12 Aug 2018 23:21:53 -0700 Subject: [PATCH] https://stackoverflow.com/questions/12351460/redeclaration-of-a-variable-in-a-for-loop-in-c --- apt-pkg/deb/deblistparser.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 20739e0..933215a 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -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; -- 2.50.0