diff options
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/stdio/vfscanf.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index e4983de33..13a5eb006 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,9 @@ 2001-04-27 Jeff Johnston <jjohnstn@redhat.com> + * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var. + +2001-04-27 Jeff Johnston <jjohnstn@redhat.com> + * libc/include/stdlib.h: Add prototype for _strtod_r. 2001-04-24 Charles Wilson <cwilson@ece.gatech.edu diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index fad6e91ab..662a92360 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -945,7 +945,7 @@ __svfscanf_r (rptr, fp, fmt0, ap) #else /* !_NO_LONG_DBL */ long double res; #endif /* !_NO_LONG_DBL */ - long new_exp; + long new_exp = 0; *p = 0; if ((flags & (DPTOK | EXPOK)) == EXPOK) |