summaryrefslogtreecommitdiff
path: root/mpfr.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
commitce342a04922797cb53557178c54d32c4efafda16 (patch)
treed92372e30a992d950705e1f234bea5ac6405bd67 /mpfr.c
parentf8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff)
downloadgawk-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.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mpfr.c b/mpfr.c
index 0bb5b435..cf7a7c21 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -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;