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, 1 insertions, 1 deletions
diff --git a/build2/target.cxx b/build2/target.cxx
index d3af0c5..062db06 100644
--- a/build2/target.cxx
+++ b/build2/target.cxx
@@ -583,7 +583,7 @@ namespace build2
{
path_type p (dir);
- if (np == nullptr)
+ if (np == nullptr || np[0] == '\0')
p /= name;
else
{