diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-28 10:29:23 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-28 10:29:23 +0200 |
commit | 32228b90a72b1d130892cf7ffcd667cb192f1e70 (patch) | |
tree | 520c5d42b04ea54b16e94ffa5b6d0ecd7d365649 /apt-pkg/deb/debsrcrecords.cc | |
parent | b29599105ed9a5bb38b55cb066ef81256d66be41 (diff) |
Fix more warnings from clang
Reported-By: clang++ -Werror
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 a444cbe4d..a8a092a16 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -55,12 +55,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); |