diff options
author | steve <steve@FreeBSD.org> | 1996-12-21 15:16:32 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1996-12-21 15:16:32 +0000 |
commit | 705d04d9c464156ec9eec74e0154ef19287ddeca (patch) | |
tree | b263633c07fe329d9c2753cceb7984673cbe9c06 /bin | |
parent | 2cc8692b2cd304a4bf8eebeee2bbb4bbd10bdb87 (diff) | |
download | FreeBSD-src-705d04d9c464156ec9eec74e0154ef19287ddeca.zip FreeBSD-src-705d04d9c464156ec9eec74e0154ef19287ddeca.tar.gz |
This doesn't change any behavior, but may be a slight
optimization. (num-- > 0) --> (--num >= 0).
Obtained from: NetBSD
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/expand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 4af0aac..833de88 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: expand.c,v 1.11 1996/10/31 07:15:54 ache Exp $ + * $Id: expand.c,v 1.12 1996/12/14 06:19:16 steve Exp $ */ #ifndef lint @@ -719,7 +719,7 @@ varisset(name) } else if (is_digit(*name)) { int num = atoi(name); ap = shellparam.p; - while (num-- > 0) + while (--num >= 0) if (*ap++ == NULL) return 0; } |