diff --git a/ChangeLog b/ChangeLog index d86a9c76f4..5b0601fa1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-01-12 Joseph Myers <joseph@codesourcery.com> + + * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t + object. + 2017-01-11 Joseph Myers <joseph@codesourcery.com> [BZ #16458] diff --git a/math/fgetexcptflg.c b/math/fgetexcptflg.c index 8e16250e3b..95a9217198 100644 --- a/math/fgetexcptflg.c +++ b/math/fgetexcptflg.c @@ -24,6 +24,7 @@ int __fegetexceptflag (fexcept_t *flagp, int excepts) { /* Nothing to do. */ + *flagp = 0; return 0; } #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)