aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authoraaronl <aaronl@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-31 06:03:12 +0000
committeraaronl <aaronl@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-31 06:03:12 +0000
commit15d7a32f34bfe9036d9a5cc9b2546ee10a81ebfb (patch)
treec42b2f8af352940541cd1ac9d166779f8d94046d /shell
parente54857261dcd169841c11de5fd63a6a02ac6872c (diff)
downloadbusybox-w32-15d7a32f34bfe9036d9a5cc9b2546ee10a81ebfb.tar.gz
busybox-w32-15d7a32f34bfe9036d9a5cc9b2546ee10a81ebfb.tar.bz2
busybox-w32-15d7a32f34bfe9036d9a5cc9b2546ee10a81ebfb.zip
ash patch: breakcmd-diff
git-svn-id: svn://busybox.net/trunk/busybox@3968 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index bc1b4da81..f2fd65728 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2996,6 +2996,8 @@ breakcmd(int argc, char **argv)
2996{ 2996{
2997 int n = argc > 1 ? number(argv[1]) : 1; 2997 int n = argc > 1 ? number(argv[1]) : 1;
2998 2998
2999 if (n <= 0)
3000 error("Illegal number: %s", argv[1]);
2999 if (n > loopnest) 3001 if (n > loopnest)
3000 n = loopnest; 3002 n = loopnest;
3001 if (n > 0) { 3003 if (n > 0) {
@@ -12479,7 +12481,7 @@ findvar(struct var **vpp, const char *name)
12479/* 12481/*
12480 * Copyright (c) 1999 Herbert Xu <herbert@debian.org> 12482 * Copyright (c) 1999 Herbert Xu <herbert@debian.org>
12481 * This file contains code for the times builtin. 12483 * This file contains code for the times builtin.
12482 * $Id: ash.c,v 1.40 2001/12/31 06:00:57 aaronl Exp $ 12484 * $Id: ash.c,v 1.41 2001/12/31 06:03:12 aaronl Exp $
12483 */ 12485 */
12484static int timescmd (int argc, char **argv) 12486static int timescmd (int argc, char **argv)
12485{ 12487{