diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 13:47:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 13:47:26 +0000 |
commit | 94b78bb204a9606254c1088a4bb6fa00859a9d82 (patch) | |
tree | b674ea60e2de891aeaeaf66a9f487c98f9de79a5 /stdlib | |
parent | cf9f9a168619810ef2bd1b67f9f1db53bd235dc4 (diff) | |
download | glibc-94b78bb204a9606254c1088a4bb6fa00859a9d82.tar.gz glibc-94b78bb204a9606254c1088a4bb6fa00859a9d82.tar.xz glibc-94b78bb204a9606254c1088a4bb6fa00859a9d82.zip |
Update.
* argp/argp-help.c: Likewise. * argp/argp-parse.c: Likewise.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/strtol.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/stdlib/strtol.c b/stdlib/strtol.c index 2a750d7dc2..93df6ab661 100644 --- a/stdlib/strtol.c +++ b/stdlib/strtol.c @@ -404,12 +404,14 @@ noconv: hexadecimal digits. This is no error case. We return 0 and ENDPTR points to the `x`. */ if (endptr != NULL) - if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') - && save[-2] == L_('0')) - *endptr = (STRING_TYPE *) &save[-1]; - else - /* There was no number to convert. */ - *endptr = (STRING_TYPE *) nptr; + { + if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') + && save[-2] == L_('0')) + *endptr = (STRING_TYPE *) &save[-1]; + else + /* There was no number to convert. */ + *endptr = (STRING_TYPE *) nptr; + } return 0L; } |