diff --git a/src/kernel/trace.cpp b/src/kernel/trace.cpp index 6f22cee76..37c4d6973 100644 --- a/src/kernel/trace.cpp +++ b/src/kernel/trace.cpp @@ -45,7 +45,7 @@ bool depends_on(trace const & t, trace const & d) { std::set visited; buffer children; todo.push_back(t.raw()); - while (todo.empty()) { + while (!todo.empty()) { trace_cell * curr = todo.back(); todo.pop_back(); if (curr == d.raw()) {