diff --git a/SystemTools.cxx b/SystemTools.cxx index 652649f4a..789170865 100644 --- a/SystemTools.cxx +++ b/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()); }