diff options
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; |