diff options
author | Leo C | 2014-08-29 23:03:44 +0200 |
---|---|---|
committer | Leo C | 2014-08-30 13:38:54 +0200 |
commit | 55027f3b53e5250768632efdd470c9e938e883e7 (patch) | |
tree | d94cfab26d02a7ba732448c34d6453069c0a3ea7 /avr/cli.c | |
parent | 7e24905c2e22a136d5730c4d6f7ca39842952ad3 (diff) | |
download | z180-stamp-55027f3b53e5250768632efdd470c9e938e883e7.zip |
env in ram
Diffstat (limited to 'avr/cli.c')
-rw-r--r-- | avr/cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -181,9 +181,9 @@ static int cli_run_command(const char *cmd, int flag) if (!cmd || !*cmd) return -1; /* empty command */ - finaltoken = xmalloc(CONFIG_SYS_CBSIZE); cmdbuf = strdup(cmd); - if (!cmdbuf) + finaltoken = xmalloc(CONFIG_SYS_CBSIZE); + if (!finaltoken) return -1; /* not enough memory */ str = cmdbuf; |