aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
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;
}
}