From 7c3eada02a3a22ff109ef0631e75586308ab2587 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Dec 2017 13:24:37 +0200 Subject: Recognize empty cc.pattern --- build2/utility.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/utility.cxx') 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 ('*')); -- cgit v1.1