diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-28 10:29:23 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-29 12:17:47 +0200 |
commit | 80624be7c54aec6ed98ee254366155024fca1a71 (patch) | |
tree | eb3d1d668850485ac109dac7d1b3b1dad299061e /apt-pkg/deb/debsrcrecords.cc | |
parent | 387fb4aea8415d09e177195841fbefb39bf5521b (diff) |
Fix more warnings from clang
Reported-By: clang++ -Werror
Conflicts:
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
apt-pkg/deb/debmetaindex.h
Diffstat (limited to 'apt-pkg/deb/debsrcrecords.cc')
-rw-r--r-- | apt-pkg/deb/debsrcrecords.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index bf5e56ec9..76ba670c6 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -57,12 +57,13 @@ const char **debSrcRecordParser::Binaries() char* binStartNext = strchrnul(bin, ','); char* binEnd = binStartNext - 1; for (; isspace(*binEnd) != 0; --binEnd) - binEnd = '\0'; + binEnd = 0; StaticBinList.push_back(bin); if (*binStartNext != ',') break; *binStartNext = '\0'; - for (bin = binStartNext + 1; isspace(*bin) != 0; ++bin); + for (bin = binStartNext + 1; isspace(*bin) != 0; ++bin) + ; } while (*bin != '\0'); StaticBinList.push_back(NULL); |