about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-05 20:35:18 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-05 20:35:18 +0000
commit1b4d62a18da5ce9dd9e6f7225eb5764dfa30c4b1 (patch)
treedf329d99f32b76b19b0bc07a1e0c1f16539e2721 /stdlib
parentce328bf1801e383dd5f51f67dd8736bf67721409 (diff)
downloadglibc-1b4d62a18da5ce9dd9e6f7225eb5764dfa30c4b1.tar.gz
glibc-1b4d62a18da5ce9dd9e6f7225eb5764dfa30c4b1.tar.xz
glibc-1b4d62a18da5ce9dd9e6f7225eb5764dfa30c4b1.zip
(STRTOF): Make sure return value is large enough so that clearing
second word is necessary.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/strtod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
index e5951f01a4..17826b9d1a 100644
--- a/stdlib/strtod.c
+++ b/stdlib/strtod.c
@@ -1076,7 +1076,9 @@ INTERNAL (STRTOF) (nptr, endptr, group)
 		      for (i = RETURN_LIMB_SIZE; i > empty; --i)
 			retval[i] = retval[i - empty];
 #endif
+#if RETURN_LIMB_SIZE > 1
 		      retval[1] = 0;
+#endif
 		      for (i = numsize; i > 0; --i)
 			num[i + empty] = num[i - 1];
 		      MPN_ZERO (num, empty + 1);