diff options
author | Scott Graham <scottmg@chromium.org> | 2014-11-10 20:38:55 (GMT) |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2014-11-10 20:38:55 (GMT) |
commit | 7d60548d7bafc7374d6486a5a6b350b4b4a2fa29 (patch) | |
tree | 9b0f26368c663c6461c82f7f4c296a97985fedf9 /src | |
parent | c47506449cd4f6e44a7d43d9b7ecb33f3b448c16 (diff) | |
download | Ninja-7d60548d7bafc7374d6486a5a6b350b4b4a2fa29.zip Ninja-7d60548d7bafc7374d6486a5a6b350b4b4a2fa29.tar.gz Ninja-7d60548d7bafc7374d6486a5a6b350b4b4a2fa29.tar.bz2 |
initialize slash_bits on non-win
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index d15837f..eaf720f 100644 --- 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; } |