summaryrefslogtreecommitdiff
path: root/apt-pkg/aptconfiguration.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2011-04-08 14:36:08 +0200
committerMichael Vogt <mvo@debian.org>2011-04-08 14:36:08 +0200
commita6dba137a3d8e011215ba86f55963f33fb8c45ff (patch)
treec769a443be0438678d629d00e5391309ed66e674 /apt-pkg/aptconfiguration.cc
parent7ea7ac9efa88b73fc6ff30483a928ef49b95c015 (diff)
parentc996a75cabffa5d3e5bc610d9f1097c2edae606f (diff)
merged from the mvo branch
Diffstat (limited to 'apt-pkg/aptconfiguration.cc')
-rw-r--r--apt-pkg/aptconfiguration.cc2
1 files changed, 1 insertions, 1 deletions
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<std::string> 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)));