diff options
author | Julian Andres Klode <jak@debian.org> | 2019-01-04 17:11:26 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2019-01-04 17:11:26 +0000 |
commit | d87d15beb103a20728348a0f4a4cedec8192ea6d (patch) | |
tree | e18cbfc0edecda5c817b82ec82a920bcc18f31b8 /apt-pkg/contrib | |
parent | d4be30586e85c8c89d7c8e68304092e9f57a3119 (diff) | |
parent | 563fedea263361b0786303f58dccc1a9a733e1d9 (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.cc | 2 |
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 |