aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-02 10:22:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-02 10:22:57 +0200
commit41a6f8b7d3036708f36ea1b5bd5b8d4289428fe5 (patch)
tree7b8fae43727b0897eaf28d625cd59b4ebfb10a65 /libbuild2
parent4baebfcd64066c94a2a814d784f0973ef5ee9b6a (diff)
Fix bug in config utility
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/config/utility.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/config/utility.cxx b/libbuild2/config/utility.cxx
index 75c9de9..f777c08 100644
--- a/libbuild2/config/utility.cxx
+++ b/libbuild2/config/utility.cxx
@@ -111,8 +111,9 @@ namespace build2
// Ignore config.*.configured and user-supplied names.
//
- if (!match_tail ("configured") &&
- find_if (ig.begin (), ig.end (), match_tail) == ig.end ())
+ if (v->name.size () <= ns.name.size () ||
+ (!match_tail ("configured") &&
+ find_if (ig.begin (), ig.end (), match_tail) == ig.end ()))
return true;
}
}