aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-05 10:55:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-05 10:55:17 +0200
commit4461d80e680bc81eaad28bac58015660f5bc105e (patch)
tree565741c2e8ac3fca23c19dbd527a7f35f9eaf8e5
parent46a95c974de475070d0eedb07212e5c5282b66bd (diff)
Fix bug in variable override code
-rw-r--r--build2/scope.cxx2
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