mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Fix a bug where "." or any single character file name doesn't get the
terminating / when setDirectory is called. llvm-svn: 18886
This commit is contained in:
parent
2062d248c7
commit
e98ef91f76
@ -300,7 +300,7 @@ Path::setDirectory(const std::string& a_path) {
|
||||
path = a_path;
|
||||
FlipBackSlashes(path);
|
||||
size_t last = a_path.size() -1;
|
||||
if (last != 0 && a_path[last] != '/')
|
||||
if (a_path[last] != '/')
|
||||
path += '/';
|
||||
if (!isValid()) {
|
||||
path = save.path;
|
||||
|
Loading…
Reference in New Issue
Block a user