From bdb3d92cd2d96909eecc5d972206dc761f278381 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 5 Apr 2011 12:06:10 +0200 Subject: [PATCH] * apt-pkg/aptconfiguration.cc: - fix comparing for a empty string --- apt-pkg/aptconfiguration.cc | 2 +- debian/changelog | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc index 14ee09e0d..ca602d4bf 100644 --- a/apt-pkg/aptconfiguration.cc +++ b/apt-pkg/aptconfiguration.cc @@ -337,7 +337,7 @@ std::vector const Configuration::getArchitectures(bool const &Cache char* arch = strtok(buf, " "); while (arch != NULL) { for (; isspace(*arch) != 0; ++arch); - if (arch != '\0') { + if (arch[0] != '\0') { char const* archend = arch; for (; isspace(*archend) == 0 && *archend != '\0'; ++archend); archs.push_back(string(arch, (archend - arch))); diff --git a/debian/changelog b/debian/changelog index 46d677421..98efce3af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ apt (0.8.13.3) unstable; urgency=low [ Michael Vogt ] * mirror method: - do not crash if the mirror file fails to download + * apt-pkg/aptconfiguration.cc: + - fix comparing for a empty string -- Michael Vogt Thu, 10 Mar 2011 15:56:54 +0100 -- 2.45.2