git: c8a4a49d582f - main - libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Nov 2021 15:43:13 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c8a4a49d582f539c73ef436ceb9d623dd9f20221 commit c8a4a49d582f539c73ef436ceb9d623dd9f20221 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-28 03:16:08 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-29 15:39:51 +0000 libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only --- lib/libc/stdio/vfwscanf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c index fbd3a8ad747a..34488912171a 100644 --- a/lib/libc/stdio/vfwscanf.c +++ b/lib/libc/stdio/vfwscanf.c @@ -268,7 +268,6 @@ convert_string(FILE *fp, char * mbp, int width, locale_t locale) static __inline int convert_wstring(FILE *fp, wchar_t *wcp, int width, locale_t locale) { - wchar_t *wcp0; wint_t wi; int nread; @@ -280,7 +279,6 @@ convert_wstring(FILE *fp, wchar_t *wcp, int width, locale_t locale) if (wi != WEOF) __ungetwc(wi, fp, locale); } else { - wcp0 = wcp; while ((wi = __fgetwc(fp, locale)) != WEOF && width-- != 0 && !iswspace(wi)) { *wcp++ = (wchar_t)wi;