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