summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2007-05-23 18:47:48 +0200
committerDetlev Zundel <dzu@denx.de>2007-06-12 14:23:00 +0200
commit5afb202093f6a001797db92cf695b93a70ea9ab4 (patch)
tree7d8dc91991f11bbf86f851ff05e26f18fd34c058 /common/main.c
parent9045f33c023f698660a2e45d1b2194c0711abebc (diff)
Fix 'run' not to continue after interrupted command
Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index 09ee64b8131..553ac357dc3 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1336,7 +1336,7 @@ int run_command (const char *cmd, int flag)
/* Did the user stop this? */
if (had_ctrlc ())
- return 0; /* if stopped then not repeatable */
+ return -1; /* if stopped then not repeatable */
}
return rc ? rc : repeatable;