summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util.c b/util.c
index 83245d7e0a..dc85183b1e 100644
--- a/util.c
+++ b/util.c
@@ -3086,6 +3086,7 @@ nrv_alloc(const char *s, char **rve, int n)
return rv;
}
+#ifndef MULTIPLE_THREADS
/* freedtoa(s) must be used to free values s returned by dtoa
* when MULTIPLE_THREADS is #defined. It should be used in all cases,
* but for consistency with earlier versions of dtoa, it is optional
@@ -3098,11 +3099,8 @@ freedtoa(char *s)
Bigint *b = (Bigint *)((int *)s - 1);
b->maxwds = 1 << (b->k = *(int*)b);
Bfree(b);
-#ifndef MULTIPLE_THREADS
- if (s == dtoa_result)
- dtoa_result = 0;
-#endif
}
+#endif
/* dtoa for IEEE arithmetic (dmg): convert double to ASCII string.
*