summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cc b/src/state.cc
index 06adf8b..79e2551 100644
--- a/src/state.cc
+++ b/src/state.cc
@@ -28,7 +28,7 @@ State::State() : build_log_(NULL) {
}
void State::AddRule(const Rule* rule) {
- assert(LookupRule(rule->name_) == NULL);
+ assert(LookupRule(rule->name()) == NULL);
rules_[rule->name()] = rule;
}