[llvm-commits] CVS: llvm/lib/System/Win32/Path.cpp
Reid Spencer
reid at x10sys.com
Sun Dec 12 23:52:02 PST 2004
Changes in directory llvm/lib/System/Win32:
Path.cpp updated: 1.10 -> 1.11
---
Log message:
Fix a bug where "." or any single character file name doesn't get the
terminating / when setDirectory is called.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/System/Win32/Path.cpp
diff -u llvm/lib/System/Win32/Path.cpp:1.10 llvm/lib/System/Win32/Path.cpp:1.11
--- llvm/lib/System/Win32/Path.cpp:1.10 Mon Dec 13 00:57:15 2004
+++ llvm/lib/System/Win32/Path.cpp Mon Dec 13 01:51:52 2004
@@ -300,7 +300,7 @@
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;
More information about the llvm-commits
mailing list