| 527 | } |
| 528 | |
| 529 | int kwsysProcess_SetCommand(kwsysProcess* cp, char const* const* command) |
| 530 | { |
| 531 | int i; |
| 532 | if (!cp) { |
| 533 | return 0; |
| 534 | } |
| 535 | for (i = 0; i < cp->NumberOfCommands; ++i) { |
| 536 | free(cp->Commands[i]); |
| 537 | } |
| 538 | cp->NumberOfCommands = 0; |
| 539 | if (cp->Commands) { |
| 540 | free(cp->Commands); |
| 541 | cp->Commands = 0; |
| 542 | } |
| 543 | if (command) { |
| 544 | return kwsysProcess_AddCommand(cp, command); |
| 545 | } |
| 546 | return 1; |
| 547 | } |
| 548 | |
| 549 | int kwsysProcess_AddCommand(kwsysProcess* cp, char const* const* command) |
| 550 | { |
no test coverage detected
searching dependent graphs…