summaryrefslogtreecommitdiffstats
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc2
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;
}