diff options
-rw-r--r-- | build2/scope.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/scope.cxx b/build2/scope.cxx index b74d52a..ad251b5 100644 --- a/build2/scope.cxx +++ b/build2/scope.cxx @@ -102,7 +102,7 @@ namespace build2 auto find = [&vars, &s, this] (const variable* o, const char* sf = nullptr) -> lookup { - if (s != nullptr && o->name.rfind (sf) == string::npos) + if (sf != nullptr && o->name.rfind (sf) == string::npos) return lookup (); // Next see if it would apply. If there is nothing "inner", then any |