From bbeee64de290de274703c64b81d3704bd0a503e0 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Sat, 8 Nov 2014 23:10:34 -0800 Subject: assert no slashes in default GetNode --- src/state.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/state.cc b/src/state.cc index b6c29ff..7d1d79d 100644 --- a/src/state.cc +++ b/src/state.cc @@ -112,6 +112,9 @@ Edge* State::AddEdge(const Rule* rule) { } Node* State::GetNode(StringPiece path) { +#if defined(_WIN32) && !defined(NDEBUG) + assert(strpbrk(path.AsString().c_str(), "/\\") == NULL); +#endif return GetNode(path, 0); } -- cgit v0.12