projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95877b6
)
ash patch: breakcmd-diff
author
Aaron Lehmann
<aaronl@vitelius.com>
Mon, 31 Dec 2001 06:03:12 +0000
(06:03 -0000)
committer
Aaron Lehmann
<aaronl@vitelius.com>
Mon, 31 Dec 2001 06:03:12 +0000
(06:03 -0000)
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index bc1b4da817bf0341f9ec7d72f21183424cb447a5..f2fd6572826a71105976c659657799028a2b3b8b 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-2996,6
+2996,8
@@
breakcmd(int argc, char **argv)
{
int n = argc > 1 ? number(argv[1]) : 1;
+ if (n <= 0)
+ error("Illegal number: %s", argv[1]);
if (n > loopnest)
n = loopnest;
if (n > 0) {
@@
-12479,7
+12481,7
@@
findvar(struct var **vpp, const char *name)
/*
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
* This file contains code for the times builtin.
- * $Id: ash.c,v 1.4
0 2001/12/31 06:00:57
aaronl Exp $
+ * $Id: ash.c,v 1.4
1 2001/12/31 06:03:12
aaronl Exp $
*/
static int timescmd (int argc, char **argv)
{