Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/input.c

    r01e397ac r9d58539  
    6767int process_input(cliuser_t *usr)
    6868{
    69         token_t *tokens_buf = calloc(WORD_MAX, sizeof(token_t));
    70         if (tokens_buf == NULL)
     69        token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
     70        if (tokens == NULL)
    7171                return ENOMEM;
    72         token_t *tokens = tokens_buf;
    7372       
    7473        char *cmd[WORD_MAX];
     
    8180
    8281        if (usr->line == NULL) {
    83                 free(tokens_buf);
     82                free(tokens);
    8483                return CL_EFAIL;
    8584        }
     
    214213        }
    215214        tok_fini(&tok);
    216         free(tokens_buf);
     215        free(tokens);
    217216
    218217        return rc;
     
    269268        if (rc != EOK) {
    270269                /* Error in communication with console */
    271                 cli_quit = 1;
    272270                return;
    273271        }
Note: See TracChangeset for help on using the changeset viewer.