diff options
Diffstat (limited to 'cli/cli_trace.cpp')
-rw-r--r-- | cli/cli_trace.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/cli_trace.cpp b/cli/cli_trace.cpp index f87a383b..8c7f5b12 100644 --- a/cli/cli_trace.cpp +++ b/cli/cli_trace.cpp @@ -169,7 +169,6 @@ traceProgram(trace::API api, for (char * const * arg = argv; *arg; ++arg) { args.push_back(*arg); } - args.push_back(NULL); if (verbose) { const char *sep = ""; @@ -180,6 +179,8 @@ traceProgram(trace::API api, std::cerr << "\n"; } + args.push_back(NULL); + status = os::execute((char * const *)&args[0]); exit: |