]> git.saurik.com Git - apt-legacy.git/blobdiff - apt-pkg/pkgcache.cc
The first character of a package should not be case sensitive.
[apt-legacy.git] / apt-pkg / pkgcache.cc
index 092ac880d9c6fa4dbdde00bef7a78d7f41056b72..c0e2e37dc6b7eddaf360667a1195dbf81b74cf3e 100644 (file)
@@ -199,7 +199,7 @@ pkgCache::PkgIterator pkgCache::FindPkg(const srkString &Name)
    Package *Pkg = PkgP + HeaderP->HashTable[Hash(Name)];
    for (; Pkg != PkgP; Pkg = PkgP + Pkg->NextPackage)
    {
-      if (Pkg->Name != 0 && StrP[Pkg->Name] == Name[0] &&
+      if (Pkg->Name != 0 &&
          stringcasecmp(Name,StrP + Pkg->Name) == 0)
         return PkgIterator(*this,Pkg);
    }