From: Michael Vogt Date: Wed, 3 Oct 2007 00:19:54 +0000 (+0200) Subject: * apt-pkg/deb/debmetaindex.cc: comparison with string literal results X-Git-Tag: 0.7.24ubuntu1~134 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/a60beec6cffa558221d845a05db63bdfff101e5c?ds=inline * apt-pkg/deb/debmetaindex.cc: comparison with string literal results in unspecified behaviour; --- diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc index 94995798f..c700f8d58 100644 --- a/apt-pkg/deb/debmetaindex.cc +++ b/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 diff --git a/debian/changelog b/debian/changelog index 3f1641ee2..87b9dd024 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,15 +1,17 @@ apt (0.7.6ubuntu12) gutsy; urgency=low + [ Michael Vogt ] * cmdline/apt-mark: - Fix chmoding after have renamed the extended-states file (LP: #140019) (thanks to Laurent Bigonville, LP: #140019) + * apt-pkg/deb/debmetaindex.cc: comparison with string literal results + in unspecified behaviour; [Paul Sladen] - * Have 'cron.daily/apt' send D-Bus doesn't exist error messages to the bit bucket. Thanks to 'dasdda'. (LP: #115397) - -- + -- Michael Vogt Wed, 03 Oct 2007 02:17:45 +0200 apt (0.7.6ubuntu11) gutsy; urgency=low