]> git.saurik.com Git - apt.git/commitdiff
- apt-pkg/deb/debmetaindex.cc: comparison with string literal results
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 2 Oct 2007 12:46:44 +0000 (09:46 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 2 Oct 2007 12:46:44 +0000 (09:46 -0300)
    in unspecified behaviour;

apt-pkg/deb/debmetaindex.cc
debian/changelog

index 94995798f2cfbcef04668641ff18a0ffeddab4e0..9ac659f78730d9cf50acd0badfe945a9e753fe75 100644 (file)
@@ -224,7 +224,7 @@ class debSLTypeDebian : public pkgSourceList::Type
         // This check insures that there will be only one Release file
         // queued for all the Packages files and Sources files it
         // corresponds to.
-        if ((*I)->GetType() == "deb")
+               if (strcmp((*I)->GetType(), "deb") == 0)
         {
            debReleaseIndex *Deb = (debReleaseIndex *) (*I);
            // This check insures that there will be only one Release file
index ad887b29ee6bc551cb60c0e80a5ab11be868dccd..7687fce5aa0d6393e2dd8f397d56eb78d4877e63 100644 (file)
@@ -66,6 +66,8 @@ apt (0.7.7) UNRELEASED; urgency=low
     - methods/gpgv.cc: conversion from string constant to 'char*';
     - methods/ftp.cc: likewise;
     - cmdline/apt-extracttemplates.cc: likewise;
+    - apt-pkg/deb/debmetaindex.cc: comparison with string literal results
+      in unspecified behaviour;
 
   [ Ian Jackson ]
   * dpkg-triggers: Deal properly with new package states.