* real.c (do_divide): Initialize result with a 0.
From-SVN: r73066
This commit is contained in:
parent
a207b59445
commit
c4361cd741
2 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue