Преглед изворни кода

- apt-pkg/deb/debmetaindex.cc: comparison with string literal results
in unspecified behaviour;

Otavio Salvador пре 19 година
родитељ
комит
a491fe600c
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 1 1
      apt-pkg/deb/debmetaindex.cc
  2. 2 0
      debian/changelog

+ 1 - 1
apt-pkg/deb/debmetaindex.cc

@@ -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

+ 2 - 0
debian/changelog

@@ -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.