summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1996-12-21 15:16:32 +0000
committersteve <steve@FreeBSD.org>1996-12-21 15:16:32 +0000
commit705d04d9c464156ec9eec74e0154ef19287ddeca (patch)
treeb263633c07fe329d9c2753cceb7984673cbe9c06 /bin/sh/expand.c
parent2cc8692b2cd304a4bf8eebeee2bbb4bbd10bdb87 (diff)
downloadFreeBSD-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/sh/expand.c')
-rw-r--r--bin/sh/expand.c4
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;
}
OpenPOWER on IntegriCloud