Date: Mon, 6 Dec 2021 00:28:05 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: f19aa58ee6b9 - stable/13 - libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only Message-ID: <202112060028.1B60S5Gn084827@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f19aa58ee6b9c085608f85918cbddf2c3977291e commit f19aa58ee6b9c085608f85918cbddf2c3977291e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-28 03:16:08 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-12-06 00:23:45 +0000 libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only (cherry picked from commit c8a4a49d582f539c73ef436ceb9d623dd9f20221) --- 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112060028.1B60S5Gn084827>