summaryrefslogtreecommitdiff
path: root/avr/cli.c
diff options
context:
space:
mode:
authorLeo C2014-08-29 23:03:44 +0200
committerLeo C2014-08-30 13:38:54 +0200
commit55027f3b53e5250768632efdd470c9e938e883e7 (patch)
treed94cfab26d02a7ba732448c34d6453069c0a3ea7 /avr/cli.c
parent7e24905c2e22a136d5730c4d6f7ca39842952ad3 (diff)
downloadz180-stamp-55027f3b53e5250768632efdd470c9e938e883e7.zip
env in ram
Diffstat (limited to 'avr/cli.c')
-rw-r--r--avr/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avr/cli.c b/avr/cli.c
index f0dd154..be5df40 100644
--- a/avr/cli.c
+++ b/avr/cli.c
@@ -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;