aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/file.cxx')
-rw-r--r--libbuild2/file.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx
index def49b8..219a5f1 100644
--- a/libbuild2/file.cxx
+++ b/libbuild2/file.cxx
@@ -2682,7 +2682,7 @@ namespace build2
// a simple name via PATH search and as an absolute path in which case
// the first import will determine the path).
//
- if (r.second.owns_lock ())
+ if (r.second)
{
r.first.as<exe> ().process_path (move (pp));
r.second.unlock ();