projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c475064
)
initialize slash_bits on non-win
author
Scott Graham
<scottmg@chromium.org>
Mon, 10 Nov 2014 20:38:55 +0000
(12:38 -0800)
committer
Scott Graham
<scottmg@chromium.org>
Mon, 10 Nov 2014 20:38:55 +0000
(12:38 -0800)
src/util.cc
patch
|
blob
|
history
diff --git
a/src/util.cc
b/src/util.cc
index
d15837f
..
eaf720f
100644
(file)
--- a/
src/util.cc
+++ b/
src/util.cc
@@
-217,6
+217,8
@@
bool CanonicalizePath(char* path, size_t* len, unsigned int* slash_bits,
*len = dst - start - 1;
#ifdef _WIN32
*slash_bits = bits;
+#else
+ *slash_bits = 0;
#endif
return true;
}