summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-11-02 16:00:05 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-11-02 16:00:05 +0000
commitb449fcf9dcd1acb7a645e624f760d0212aee6670 (patch)
tree8cf62ba04a898b45a2eb6ceeda49b2db3f59a623 /bin
parentb7ae6861f731e1c51e096294ae9cb1eda7ba7766 (diff)
Fix my fix!
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/expand.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index 0a2e4bdcffe..353be2b69ab 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expand.c,v 1.5 1996/11/02 05:18:24 millert Exp $ */
+/* $OpenBSD: expand.c,v 1.6 1996/11/02 16:00:04 millert Exp $ */
/* $NetBSD: expand.c,v 1.20 1996/02/12 15:11:41 christos Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)expand.c 8.5 (Berkeley) 5/15/95";
#else
-static char rcsid[] = "$OpenBSD: expand.c,v 1.5 1996/11/02 05:18:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: expand.c,v 1.6 1996/11/02 16:00:04 millert Exp $";
#endif
#endif /* not lint */
@@ -705,10 +705,9 @@ varisset(name)
} else if (is_digit(*name)) {
int num = atoi(name);
ap = shellparam.p;
- do {
+ while (--num >= 0)
if (*ap++ == NULL)
return 0;
- } while (--num >= 0);
}
return 1;
}