X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpath.cpp;h=e79a8fe010210e18da9c57817d35754292d61e70;hb=da904316fb2ed4e2d084726e20f514f6faf956f7;hp=6127f7a84c06955dc4963589a8406515d3bd4207;hpb=49f8d38d31a0085b223a4398d62059eb529ca35b;p=libs%2Fcore.git diff --git a/source/path.cpp b/source/path.cpp index 6127f7a..e79a8fe 100644 --- a/source/path.cpp +++ b/source/path.cpp @@ -155,7 +155,7 @@ void Path::add_component(const string &comp) { unsigned slash=path.rfind(DIRCHAR); unsigned start=(slash==string::npos)?0:slash+1; - if(path.compare(start, string::npos, "..")) + if(!path.compare(start, string::npos, "..")) { // If the last component already is a .., add another path+=DIRCHAR;