Changeset 00aece0 in mainline for uspace/app/bdsh/input.c


Ignore:
Timestamp:
2012-02-18T16:47:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4449c6c
Parents:
bd5f3b7 (diff), f943dd3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rbd5f3b7 r00aece0  
    6767int process_input(cliuser_t *usr)
    6868{
    69         char *cmd[WORD_MAX];
    7069        token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
    7170        if (tokens == NULL)
    7271                return ENOMEM;
     72       
     73        char *cmd[WORD_MAX];
    7374        int rc = 0;
    7475        tokenizer_t tok;
     
    7879        char *redir_to = NULL;
    7980
    80         if (NULL == usr->line) {
     81        if (usr->line == NULL) {
    8182                free(tokens);
    8283                return CL_EFAIL;
     
    195196                new_iostate.stdout = to;
    196197        }
    197        
     198
    198199        rc = run_command(cmd, usr, &new_iostate);
    199200       
Note: See TracChangeset for help on using the changeset viewer.