mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-02 00:18:23 +00:00
Check if there's a parent directory to go to on .. in NormalizePath.
This commit is contained in:
@@ -1283,9 +1283,12 @@ char* NormalizePath( const char* path )
|
||||
case 2:
|
||||
if( memcmp( ptr, "..", 2 ) == 0 )
|
||||
{
|
||||
const char* back = res + rsz - 1;
|
||||
while( back > res && *back != '/' ) back--;
|
||||
rsz = back - res;
|
||||
if( rsz > 0 )
|
||||
{
|
||||
const char* back = res + rsz - 1;
|
||||
while( back > res && *back != '/' ) back--;
|
||||
rsz = back - res;
|
||||
}
|
||||
ptr = next + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user