aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cli/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx
index b7a8434..c14f7cf 100644
--- a/build2/cli/init.cxx
+++ b/build2/cli/init.cxx
@@ -86,7 +86,7 @@ namespace build2
//
auto test = [optional, &pp] (const path& cli) -> string
{
- const char* args[] = {nullptr, "--version", nullptr};
+ const char* args[] = {cli.string ().c_str (), "--version", nullptr};
try
{