From c414abe13450e2b4e204f6368ba83c8916de1ebd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 23 Apr 2018 08:23:06 +0200 Subject: Minor code reuse improvement --- build2/file.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 5ffa59a..b0d202c 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -829,7 +829,7 @@ namespace build2 { dir_path out_root (root.out_path () / p.second); - if (!out_base.sub (out_root)) + if (!out_base.empty () && !out_base.sub (out_root)) continue; // The same logic to src_root as in create_bootstrap_outer(). -- cgit v1.1