diff options
author | Roland McGrath <roland@gnu.org> | 1995-03-18 20:44:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-03-18 20:44:21 +0000 |
commit | be69ea41ebade5819509b32e1b41ce1853392611 (patch) | |
tree | 0371b8fbbefb4703b76542407c265fbc3b79d3bb /stdlib | |
parent | a38f13baf0fd4ee63833371bb867bcd09bb866c9 (diff) | |
download | glibc-be69ea41ebade5819509b32e1b41ce1853392611.tar glibc-be69ea41ebade5819509b32e1b41ce1853392611.tar.gz glibc-be69ea41ebade5819509b32e1b41ce1853392611.tar.bz2 glibc-be69ea41ebade5819509b32e1b41ce1853392611.zip |
Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
means %d from 3rd arg).
* sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
* stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
END, not GROUP.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/strtol.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib/strtol.c b/stdlib/strtol.c index 1c63afb6fe..a6c19578a2 100644 --- a/stdlib/strtol.c +++ b/stdlib/strtol.c @@ -175,6 +175,8 @@ INTERNAL (strtol) (nptr, endptr, base, group) else end = correctly_grouped_prefix (s, end, thousands, grouping); } + else + end = NULL; cutoff = ULONG_MAX / (unsigned LONG int) base; cutlim = ULONG_MAX % (unsigned LONG int) base; @@ -183,7 +185,7 @@ INTERNAL (strtol) (nptr, endptr, base, group) i = 0; for (c = *s; c != '\0'; c = *++s) { - if (group && s == end) + if (s == end) break; if (isdigit (c)) c -= '0'; |