From 4461d80e680bc81eaad28bac58015660f5bc105e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Apr 2016 10:55:17 +0200 Subject: Fix bug in variable override code --- build2/scope.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1