File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ void ParsedPath::parse(const PathName& path)
42
42
PathUtils::splitLastComponent (newpath, elem, oldpath);
43
43
oldpath = newpath;
44
44
45
- if (elem.isEmpty () && !oldpath.isEmpty ()) // Skip double dir separator
45
+ if (elem.isEmpty ()) // Skip double dir separator
46
+ {
46
47
continue ;
47
48
48
49
if (elem == PathUtils::curr_dir_link) // Skip current dir reference
@@ -72,12 +73,12 @@ void ParsedPath::parse(const PathName& path)
72
73
73
74
PathName ParsedPath::subPath (FB_SIZE_T n) const
74
75
{
75
- PathName rc = (* this )[ 0 ] ;
76
-
77
- if (rc. isEmpty ())
78
- rc = PathUtils::dir_sep;
79
-
80
- for (FB_SIZE_T i = 1 ; i < n; i++)
76
+ PathName rc;
77
+ # ifndef WIN_NT
78
+ // Code in DirectoryList::initialize() ensured that the path is absolute
79
+ rc = PathUtils::dir_sep;
80
+ # endif
81
+ for (FB_SIZE_T i = 0 ; i < n; i++)
81
82
{
82
83
PathName newpath;
83
84
PathUtils::concatPath (newpath, rc, (*this )[i]);
You can’t perform that action at this time.
0 commit comments