Commit c238cc31 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

process: fix missing argv[0] in the new vector startup


Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 5e00804d
......@@ -64,6 +64,8 @@ void xorg::testing::Process::Start(const std::string &program, const std::vector
std::vector<char*> args;
std::vector<std::string>::const_iterator it;
args.push_back(strdup(program.c_str()));
for (it = argv.begin(); it != argv.end(); it++)
if (!it->empty())
args.push_back(strdup(it->c_str()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment