Skip to content

Commit

Permalink
trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Aug 5, 2022
1 parent e9cbc5e commit 3c7276d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ static void run_child(int fd_send_filename, const char* tmpdir) {
int err;
struct timeval starttv;
char *cmd;

int cmdLen = 0;
printf("here\n");

for (int i = 0; i < command_line.command.num; cmdLen += strlen(command_line.command.array[i]) + 1, i++);
cmd = malloc(cmdLen * sizeof(char) + 1);
for (int i = 0; i < command_line.command.num; i++) {
Expand Down

0 comments on commit 3c7276d

Please sign in to comment.