diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-08-10 15:21:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-08-10 15:21:57 +0000 |
commit | b2bde18ba5c1f6d6555083cba139bd813ebbd6e0 (patch) | |
tree | f3acf1717cdbbec66d0bd5839311dce2e541e008 /newlib/libc/time | |
parent | 76c4e21b4919ca33b29dc60465334db204a1d56e (diff) | |
download | newlib-b2bde18ba5c1f6d6555083cba139bd813ebbd6e0.zip newlib-b2bde18ba5c1f6d6555083cba139bd813ebbd6e0.tar.gz newlib-b2bde18ba5c1f6d6555083cba139bd813ebbd6e0.tar.bz2 |
* libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.
* libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid
compiler warning.
* libc/stdio/fgets.c (_fgets_r): Ditto.
* libc/time/strftime.c (strftime): Ditto.
Diffstat (limited to 'newlib/libc/time')
-rw-r--r-- | newlib/libc/time/strftime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 840e310..2bcedb2 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -693,7 +693,7 @@ _DEFUN (strftime, (s, maxsize, format, tim_p), #endif /* !_WANT_C99_TIME_FORMATS */ { size_t count = 0; - int i, len; + int i, len = 0; const CHAR *ctloc; #if defined (MAKE_WCSFTIME) && !defined (__HAVE_LOCALE_INFO_EXTENDED__) CHAR ctlocbuf[CTLOCBUFLEN]; |