ERR: Fixed use of non-constant initializer.

This commit is contained in:
Brad King 2003-06-25 09:32:38 -04:00
parent 915972ff44
commit a778cd0f3d
1 changed files with 5 additions and 1 deletions

View File

@ -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