summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-10 11:56:14 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-10 11:56:14 (GMT)
commit0b495b6ca9bfb6c2c3da2ecb7c4301a89fe93692 (patch)
tree602f80814168e4accace5430524eb42825ed7c02 /Source/kwsys/SystemTools.cxx
parent41c0adde026c9d49a69ee2d975fb46757fd9a4b5 (diff)
parent4ab6fcd676549814e9b4a029b6eac1f13ea8b6e6 (diff)
downloadCMake-0b495b6ca9bfb6c2c3da2ecb7c4301a89fe93692.zip
CMake-0b495b6ca9bfb6c2c3da2ecb7c4301a89fe93692.tar.gz
CMake-0b495b6ca9bfb6c2c3da2ecb7c4301a89fe93692.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2020-04-10 (b62956f5)
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 8ec3058..3a6ceec 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1904,7 +1904,7 @@ std::vector<std::string> SystemTools::SplitString(const std::string& p,
paths.emplace_back("/");
}
std::string::size_type pos1 = 0;
- std::string::size_type pos2 = path.find(sep, pos1 + 1);
+ std::string::size_type pos2 = path.find(sep, pos1);
while (pos2 != std::string::npos) {
paths.push_back(path.substr(pos1, pos2 - pos1));
pos1 = pos2 + 1;