Skip to content

Commit

Permalink
Fix variable handling in subninja files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Dec 28, 2023
1 parent 3558ddd commit d407823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/File.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const Variable* File::find_variable(const std::string& name) const {
for (auto file = this; file; file = file->previous) {
const auto& it = file->bindings.find(name);

if (it != bindings.end()) {
if (it != file->bindings.end()) {
return &it->second;
}
}
Expand Down

0 comments on commit d407823

Please sign in to comment.