From 28fb279aba3af8bf1a57a9e36b2b183ef68c5454 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Jan 2019 13:51:31 +0200 Subject: Diagnose target names with multiple trailing slashes as invalid --- build2/target.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build2/target.cxx') 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 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 -- cgit v1.1