summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-04 13:08:58 (GMT)
committerBrad King <brad.king@kitware.com>2013-06-04 13:08:58 (GMT)
commitc91e88d0e15f38616284f12fc0f2152ac6c0562c (patch)
tree250660554caf85ff5acb5ca95e13c6c4a71400ab /Source/kwsys/SystemTools.cxx
parent9d38db531d4bbba4eca48dc1ec4e724e98614201 (diff)
parent6dc3dd91a62cdc52ec8bd2e938b621d7c5e6fb2b (diff)
downloadCMake-c91e88d0e15f38616284f12fc0f2152ac6c0562c.zip
CMake-c91e88d0e15f38616284f12fc0f2152ac6c0562c.tar.gz
CMake-c91e88d0e15f38616284f12fc0f2152ac6c0562c.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
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 652649f..7891708 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -3085,7 +3085,7 @@ SystemToolsAppendComponents(
{
if(*i == "..")
{
- if(out_components.begin() != out_components.end())
+ if(out_components.size() > 1)
{
out_components.erase(out_components.end()-1, out_components.end());
}