aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-04-27 21:59:44 +0000
committerJeff Johnston <jjohnstn@redhat.com>2001-04-27 21:59:44 +0000
commit0ca66974933232188d8d347b225abacf77d241cf (patch)
tree0ab4045f322dbb8ff990f1d284861bc4ccf7c8ae /newlib
parent7cb7017ae0acd7c503b149012285b01e63eeda80 (diff)
downloadnewlib-0ca66974933232188d8d347b225abacf77d241cf.zip
newlib-0ca66974933232188d8d347b225abacf77d241cf.tar.gz
newlib-0ca66974933232188d8d347b225abacf77d241cf.tar.bz2
2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdio/vfscanf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index e4983de..13a5eb0 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 fad6e91..662a923 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)