initialize slash_bits on non-win
authorScott Graham <scottmg@chromium.org>
Mon, 10 Nov 2014 20:38:55 +0000 (12:38 -0800)
committerScott Graham <scottmg@chromium.org>
Mon, 10 Nov 2014 20:38:55 +0000 (12:38 -0800)
src/util.cc

index d15837f..eaf720f 100644 (file)
@@ -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;
 }