diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-04 17:12:15 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-04 17:12:15 +0000 | 
| commit | f4fc08f367b47eb5287d8d875c65bb4117ff21ed (patch) | |
| tree | af89eb01ba19a74fc67ffe143502542f730d19e6 /lib/libc/stdlib/strtol.c | |
| parent | 9371144d2079d94f7682a0a7abbf85722b399f22 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/strtol.c')
| -rw-r--r-- | lib/libc/stdlib/strtol.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtol.c b/lib/libc/stdlib/strtol.c index 99c895c49c5d..58a68454a11a 100644 --- a/lib/libc/stdlib/strtol.c +++ b/lib/libc/stdlib/strtol.c @@ -89,7 +89,7 @@ strtol(nptr, endptr, base)  	}  	if (base == 0)  		base = c == '0' ? 8 : 10; -	any = 0; +	acc = any = 0;  	if (base < 2 || base > 36)  		goto noconv; @@ -114,7 +114,7 @@ strtol(nptr, endptr, base)  	    : LONG_MAX;  	cutlim = cutoff % base;  	cutoff /= base; -	for (acc = 0; ; c = *s++) { +	for ( ; ; c = *s++) {  		if (!isascii(c))  			break;  		if (isdigit(c))  | 
