aboutsummaryrefslogtreecommitdiff
path: root/build2/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/target.cxx')
-rw-r--r--build2/target.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/target.cxx b/build2/target.cxx
index e70a386..1c8b85f 100644
--- a/build2/target.cxx
+++ b/build2/target.cxx
@@ -220,6 +220,8 @@ namespace build2
optional<string> target::
split_name (string& v, const location& loc)
{
+ assert (!v.empty ());
+
// We treat a single trailing dot as "specified no extension", double dots
// as a single trailing dot (that is, an escape sequence which can be
// repeated any number of times; in such cases we naturally assume there