aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-20 15:59:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-28 10:10:44 +0200
commit7d0cbd244d218bca8b806c283a5ae095f221b324 (patch)
tree4f6ca70bcc25cec76b5fd32555e4dfb23dda6692 /libbuild2/variable.cxx
parentff428efce81c7632724fd24028430523bb1e8fce (diff)
Make notion of name pattern explicit, fix various related loose ends
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r--libbuild2/variable.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx
index f9e60c1..451cb76 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -1820,8 +1820,7 @@ namespace build2
//
if (pat != "*")
{
- if (name.size () < pat.size () - 1 || // One for '*' or '?'.
- !butl::path_match (name, pat))
+ if (!butl::path_match (name, pat))
continue;
}