summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2019-01-04 17:11:26 +0000
committerJulian Andres Klode <jak@debian.org>2019-01-04 17:11:26 +0000
commitd87d15beb103a20728348a0f4a4cedec8192ea6d (patch)
treee18cbfc0edecda5c817b82ec82a920bcc18f31b8 /apt-pkg/contrib
parentd4be30586e85c8c89d7c8e68304092e9f57a3119 (diff)
parent563fedea263361b0786303f58dccc1a9a733e1d9 (diff)
Merge branch 'pu/speedups' into 'master'
Pu/speedups See merge request apt-team/apt!42
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/configuration.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc
index 1c000e586..997ef7423 100644
--- a/apt-pkg/contrib/configuration.cc
+++ b/apt-pkg/contrib/configuration.cc
@@ -252,7 +252,7 @@ Configuration::Item *Configuration::Lookup(Item *Head,const char *S,
if (Len != 0)
{
for (; I != 0; Last = &I->Next, I = I->Next)
- if ((Res = stringcasecmp(I->Tag,S,S + Len)) == 0)
+ if (Len == I->Tag.length() && (Res = stringcasecmp(I->Tag,S,S + Len)) == 0)
break;
}
else