diff options
Diffstat (limited to 'usr/src/lib')
| -rw-r--r-- | usr/src/lib/libc/port/locale/fgetwc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/lib/libc/port/locale/fgetwc.c b/usr/src/lib/libc/port/locale/fgetwc.c index 254a785891..6ad7db2cb7 100644 --- a/usr/src/lib/libc/port/locale/fgetwc.c +++ b/usr/src/lib/libc/port/locale/fgetwc.c @@ -59,7 +59,8 @@ _fgetwc_unlocked_l(FILE *fp, locale_t loc) /* Fast path for single-byte encodings. */ return ((wint_t)c); } - if ((statep = _getmbstate(fp)) == NULL) { + statep = _getmbstate(fp); + if (statep == NULL) { fp->_flag = _IOERR; errno = EBADF; return (WEOF); |
