aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-03-10 19:57:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-03-17 14:19:49 +0300
commitecb90f473285119fdb190f9a727a2a03a2546a5c (patch)
tree6d6d61bae0f9f1bc5ef3d72efda69314f7c14c1f
parentafd0b8699b009b96be34ba2a20441ecb223957ce (diff)
Fix GCC 'storing the address of local variable' warning
-rw-r--r--bpkg/utility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx
index 96fda0f..ec95264 100644
--- a/bpkg/utility.cxx
+++ b/bpkg/utility.cxx
@@ -381,7 +381,7 @@ namespace bpkg
// example, if we installed into /opt/build2 and run bpkg with absolute
// path (and without PATH), then bpkg will be able to find "its" b.
//
- return process::path_search (b, exec_dir);
+ return process::path_search (b, true /* init */, exec_dir);
}
catch (const process_error& e)
{