summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nand.c2
-rw-r--r--common/main.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index bae630d..0fd3a6c 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -191,7 +191,7 @@ static int arg_off_size(int argc, char *const argv[], int *idx,
loff_t *off, loff_t *size)
{
int ret;
- loff_t maxsize;
+ loff_t maxsize = 0;
if (argc == 0) {
*off = 0;
diff --git a/common/main.c b/common/main.c
index db181d3..3b9e39a 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1338,7 +1338,8 @@ static int builtin_run_command(const char *cmd, int flag)
continue;
}
- rc = cmd_process(flag, argc, argv, &repeatable);
+ if (cmd_process(flag, argc, argv, &repeatable))
+ rc = -1;
/* Did the user stop this? */
if (had_ctrlc ())