aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/vfwscanf.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-08-27 11:32:28 -0700
committerCorinna Vinschen <corinna@vinschen.de>2018-08-29 15:57:27 +0200
commit2c245028afa4883163c6ad7d04da9f7b7745b3b4 (patch)
tree965ef2364fdbe9760d11d03393b010fbeb9a1e00 /newlib/libc/stdio/vfwscanf.c
parent9e032fd939a188b38ab36b6e94c93056ed347952 (diff)
downloadnewlib-2c245028afa4883163c6ad7d04da9f7b7745b3b4.zip
newlib-2c245028afa4883163c6ad7d04da9f7b7745b3b4.tar.gz
newlib-2c245028afa4883163c6ad7d04da9f7b7745b3b4.tar.bz2
Use nanf("") instead of nanf(NULL)
Newer GCC versions require a non-NULL argument to this function for some reason. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'newlib/libc/stdio/vfwscanf.c')
-rw-r--r--newlib/libc/stdio/vfwscanf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfwscanf.c b/newlib/libc/stdio/vfwscanf.c
index c3470a1..0464b08 100644
--- a/newlib/libc/stdio/vfwscanf.c
+++ b/newlib/libc/stdio/vfwscanf.c
@@ -1636,7 +1636,7 @@ __SVFWSCANF_R (struct _reent *rptr,
{
flp = GET_ARG (N, ap, float *);
if (isnan (res))
- *flp = nanf (NULL);
+ *flp = nanf ("");
else
*flp = res;
}