mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
This doesn't change any behavior, but may be a slight
optimization. (num-- > 0) --> (--num >= 0). Obtained from: NetBSD
This commit is contained in:
parent
4d28b322e3
commit
33703c0825
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20746
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user