Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-08-10 19:21:57 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-08-10 19:21:57 +0400
commitb2bde18ba5c1f6d6555083cba139bd813ebbd6e0 (patch)
treef3acf1717cdbbec66d0bd5839311dce2e541e008 /newlib/libc/stdio
parent76c4e21b4919ca33b29dc60465334db204a1d56e (diff)
* 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/stdio')
-rw-r--r--newlib/libc/stdio/fgets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fgets.c b/newlib/libc/stdio/fgets.c
index 1644fba6a..319cfd576 100644
--- a/newlib/libc/stdio/fgets.c
+++ b/newlib/libc/stdio/fgets.c
@@ -102,7 +102,7 @@ _DEFUN(_fgets_r, (ptr, buf, n, fp),
#ifdef __SCLE
if (fp->_flags & __SCLE)
{
- int c;
+ int c = 0;
/* Sorry, have to do it the slow way */
while (--n > 0 && (c = __sgetc_r (ptr, fp)) != EOF)
{