diff options
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 53c0ab40e67..62117b78f06 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -1552,6 +1552,9 @@ FileSpec::AppendPathComponent(const char *new_path) stream.PutChar(GetPrefferedPathSeparator(m_syntax)); } + while (IsPathSeparator(new_path[0], m_syntax)) + new_path++; + stream.PutCString(new_path); const bool resolve = false; |