* real.c (do_divide): Initialize result with a 0.

From-SVN: r73066
This commit is contained in:
Hans-Peter Nilsson 2003-10-29 22:33:54 +00:00 committed by Hans-Peter Nilsson
parent a207b59445
commit c4361cd741
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2003-10-29 Hans-Peter Nilsson <hp@axis.com>
* real.c (do_divide): Initialize result with a 0.
* configure.in <enable-checking for valgrind>: Look for
<valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
if it exists.

View File

@ -858,6 +858,8 @@ do_divide (REAL_VALUE_TYPE *r, const REAL_VALUE_TYPE *a,
else
rr = r;
/* Make sure all fields in the result are initialized. */
get_zero (rr, 0);
rr->class = rvc_normal;
rr->sign = sign;