From 2d87d95f12bbbb8bff611c8a19b943b9ebedb1fd Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 8 Aug 2018 10:41:58 +0200 Subject: newlib: fix various gcc warnings * unused variables * potentially used uninitialized * suggested bracketing * misleading indentation Signed-off-by: Corinna Vinschen --- newlib/libc/stdio/vfscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdio/vfscanf.c') diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index b972355..080dcf4 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -421,7 +421,7 @@ __SVFSCANF_R (struct _reent *rptr, int nbytes = 1; /* number of bytes read from fmt string */ wchar_t wc; /* wchar to use to read format string */ wchar_t *wcp; /* handy wide character pointer */ - size_t mbslen; /* length of converted multibyte sequence */ + size_t mbslen = 0; /* length of converted multibyte sequence */ #ifdef _MB_CAPABLE mbstate_t state; /* value to keep track of multibyte state */ #endif -- cgit v1.1