mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
remove single "." entries from paths
svn path=/trunk/; revision=17585
This commit is contained in:
parent
2b121dc93c
commit
b17534dfa0
1 changed files with 4 additions and 1 deletions
|
@ -223,12 +223,15 @@ Path::Split ( vector<string>& out,
|
|||
out.resize ( 0 );
|
||||
while ( p )
|
||||
{
|
||||
out.push_back ( prev );
|
||||
if ( strcmp ( prev, "." ) )
|
||||
out.push_back ( prev );
|
||||
prev = p;
|
||||
p = strtok ( NULL, "/\\" );
|
||||
}
|
||||
if ( include_last )
|
||||
out.push_back ( prev );
|
||||
if ( out.back() == "." )
|
||||
out.pop_back();
|
||||
}
|
||||
|
||||
XMLFile::XMLFile()
|
||||
|
|
Loading…
Reference in a new issue