Skip to content
Snippets Groups Projects
Commit 78be817a authored by Brad King's avatar Brad King
Browse files

ERR: Fixed use of non-constant initializer.

parent f4a59c3c
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,11 @@ int main(int argc, const char* argv[])
int exceptions[4] = {kwsysProcess_Exception_None, kwsysProcess_Exception_None,
kwsysProcess_Exception_None, kwsysProcess_Exception_Fault};
int values[4] = {0, 123, 1, 1};
const char* cmd[] = {argv[0], "run", argv[1], 0};
const char* cmd[4];
cmd[0] = argv[0];
cmd[1] = "run";
cmd[2] = argv[1];
cmd[3] = 0;
return runChild(cmd, states[n-1], exceptions[n-1], values[n-1]);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment