Changes in uspace/app/bdsh/input.c [b48d046:81bc309] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
rb48d046 r81bc309 67 67 int process_input(cliuser_t *usr) 68 68 { 69 token_t *tokens = calloc(WORD_MAX, sizeof(token_t));70 if (tokens == NULL)71 return ENOMEM;72 73 69 char *cmd[WORD_MAX]; 70 token_t tokens_space[WORD_MAX]; 71 token_t *tokens = tokens_space; 74 72 int rc = 0; 75 73 tokenizer_t tok; … … 79 77 char *redir_to = NULL; 80 78 81 if (usr->line == NULL) { 82 free(tokens); 79 if (NULL == usr->line) 83 80 return CL_EFAIL; 84 }85 81 86 82 rc = tok_init(&tok, usr->line, tokens, WORD_MAX); … … 196 192 new_iostate.stdout = to; 197 193 } 198 194 199 195 rc = run_command(cmd, usr, &new_iostate); 200 196 … … 213 209 } 214 210 tok_fini(&tok); 215 free(tokens);216 211 217 212 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.