summaryrefslogtreecommitdiffstats
path: root/src/state.cc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-01-20 05:20:15 (GMT)
committerNico Weber <nicolasweber@gmx.de>2015-01-20 05:20:15 (GMT)
commita87516edd643e15d3a2a51048e6b507683f63ea7 (patch)
tree6ca0dcfef7aab4aefb5aad5de1011ed886392749 /src/state.cc
parent81d43ed3ee5b399f69fdff4b520523d43ae0c2d4 (diff)
downloadNinja-a87516edd643e15d3a2a51048e6b507683f63ea7.zip
Ninja-a87516edd643e15d3a2a51048e6b507683f63ea7.tar.gz
Ninja-a87516edd643e15d3a2a51048e6b507683f63ea7.tar.bz2
Remove an incorrect assert.
The assert fires on cyclic manifests (found by afl-fuzz). Since there was explicit error handing for this case already, just remove the assert.
Diffstat (limited to 'src/state.cc')
-rw-r--r--src/state.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/state.cc b/src/state.cc
index 6e3e10d..1ceda45 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -187,7 +187,6 @@ vector<Node*> State::RootNodes(string* err) {
if (!edges_.empty() && root_nodes.empty())
*err = "could not determine root nodes of build graph";
- assert(edges_.empty() || !root_nodes.empty());
return root_nodes;
}