From ecb90f473285119fdb190f9a727a2a03a2546a5c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 10 Mar 2023 19:57:33 +0300 Subject: Fix GCC 'storing the address of local variable' warning --- bpkg/utility.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpkg/utility.cxx') 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) { -- cgit v1.1