.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@7134 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-02 15:54:57 +00:00
commit 41a2914ec0
2 changed files with 11 additions and 4 deletions

View file

@ -741,12 +741,13 @@ String NormalizePath(const char *path, const char *currdir) {
}
for(; i < si.GetCount(); i++) {
String s = si[i];
if(s != "." && !s.IsEmpty())
if(s != "." && !s.IsEmpty()) {
if(s[0] == '.' && s[1] == '.') {
if(!p.IsEmpty()) p.Drop();
}
else
p.Add(s);
}
}
out.Cat(Join(p, DIR_SEPS));
return out;