aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/utility.cxx')
-rw-r--r--build2/utility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/utility.cxx b/build2/utility.cxx
index 36f8a4d..4945514 100644
--- a/build2/utility.cxx
+++ b/build2/utility.cxx
@@ -452,7 +452,7 @@ namespace build2
string
apply_pattern (const char* s, const string* p)
{
- if (p == nullptr)
+ if (p == nullptr || p->empty ())
return s;
size_t i (p->find ('*'));