diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-11-04 11:05:55 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-11-04 11:05:55 +0000 |
| commit | a27a4b369016302f5feeeceed5a128aedb6bcb1f (patch) | |
| tree | de1efe529ace379f46b768f97f638aa004be19ea /lib/libc/stdio/fgetwc.c | |
| parent | 92797e8470d5966562f258b4c73f28a784000e21 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/fgetwc.c')
| -rw-r--r-- | lib/libc/stdio/fgetwc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/stdio/fgetwc.c b/lib/libc/stdio/fgetwc.c index 93438a60035c..3a6e6e135e04 100644 --- a/lib/libc/stdio/fgetwc.c +++ b/lib/libc/stdio/fgetwc.c @@ -78,7 +78,6 @@ static __inline wint_t __fgetwc_nbf(FILE *fp) { char buf[MB_LEN_MAX]; - mbstate_t mbs; size_t n, nconv; int c; wchar_t wc; @@ -91,8 +90,7 @@ __fgetwc_nbf(FILE *fp) break; } buf[n++] = (char)c; - memset(&mbs, 0, sizeof(mbs)); - nconv = mbrtowc(&wc, buf, n, &mbs); + nconv = mbrtowc(&wc, buf, n, NULL); if (nconv == n) return (wc); else if (nconv == 0) |
