aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script/script.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-25 22:04:28 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 14:36:19 +0200
commite6470e37093084251b7ee60a904a78e54d13e31b (patch)
tree02845c95ff3c9a16808d2f5b602f8ae83ab3dc43 /libbuild2/script/script.cxx
parentf5fba11159da64e53829a151a9d19d022ac63662 (diff)
Use dir_name_view for script environment working and sandbox directories
Diffstat (limited to 'libbuild2/script/script.cxx')
-rw-r--r--libbuild2/script/script.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/script/script.cxx b/libbuild2/script/script.cxx
index 9e8780e..c85bfd3 100644
--- a/libbuild2/script/script.cxx
+++ b/libbuild2/script/script.cxx
@@ -633,7 +633,7 @@ namespace build2
const path& p (c.path);
- if (!sandbox_dir.empty () && !p.sub (sandbox_dir))
+ if (sandbox_dir.path != nullptr && !p.sub (*sandbox_dir.path))
{
if (implicit)
return;