summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2013-10-01 12:38:03 +0200
committerMichael Vogt <mvo@ubuntu.com>2013-10-01 12:38:03 +0200
commit2ddab3fb958518acbd26685eeeb7755106b721a3 (patch)
treeb5138b85e166b85036856e274bc4ef538ea70886 /apt-pkg/contrib/strutl.cc
parent41053d721ce7f81652d7e873067376b94f9a060d (diff)
change maxsplit default from "0" to maxint
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r--apt-pkg/contrib/strutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index 96c6d2f35..77e48962c 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -1139,7 +1139,7 @@ vector<string> StringSplit(std::string const &s, std::string const &sep,
split.push_back(s.substr(start, pos-start));
// if maxsplit is reached, the remaining string is the last item
- if(maxsplit > 0 && split.size() >= maxsplit)
+ if(split.size() >= maxsplit)
{
split[split.size()-1] = s.substr(start);
break;