diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
commit | ce342a04922797cb53557178c54d32c4efafda16 (patch) | |
tree | d92372e30a992d950705e1f234bea5ac6405bd67 /mpfr.c | |
parent | f8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff) | |
download | gawk-ce342a04922797cb53557178c54d32c4efafda16.tar.gz |
Document string termination in header files and remove no-longer-needed string termination logic in various places.
Diffstat (limited to 'mpfr.c')
-rw-r--r-- | mpfr.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -275,7 +275,6 @@ static int force_mpnum(NODE *n, int do_nondec, int use_locale) { char *cp, *cpend, *ptr, *cp1; - char save; int tval, base = 10; if (n->stlen == 0) { @@ -292,9 +291,6 @@ force_mpnum(NODE *n, int do_nondec, int use_locale) return false; } - save = *cpend; - *cpend = '\0'; - if (*cp == '+' || *cp == '-') cp1 = cp + 1; else @@ -329,7 +325,6 @@ done: /* trailing space is OK for NUMBER */ while (ptr < cpend && isspace((unsigned char) *ptr)) ptr++; - *cpend = save; if (errno == 0 && ptr == cpend) return true; errno = 0; |