summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debmetaindex.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-10-03 02:19:54 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-10-03 02:19:54 +0200
commita60beec6cffa558221d845a05db63bdfff101e5c (patch)
tree9d7385850f86b1a3a5eb0bebb52de6a7168ffc80 /apt-pkg/deb/debmetaindex.cc
parentbf1aaa6c9d989b328c031360658a8a0d592bc755 (diff)
* apt-pkg/deb/debmetaindex.cc: comparison with string literal results
in unspecified behaviour;
Diffstat (limited to 'apt-pkg/deb/debmetaindex.cc')
-rw-r--r--apt-pkg/deb/debmetaindex.cc2
1 files changed, 1 insertions, 1 deletions
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