diff options
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r-- | lib/libc/stdio/findfp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 8b7517ab7cd8..40a2a048eb64 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -176,6 +176,12 @@ found: fp->_lb._base = NULL; /* no line buffer */ fp->_lb._size = 0; /* fp->_lock = NULL; */ /* once set always set (reused) */ + fp->_extra->orientation = 0; +#ifdef notdef + /* Stateful encoding/decoding is not yet supported. */ + memset(&fp->_extra->wstate, 0, sizeof(mbstate_t)); + memset(&fp->_extra->rstate, 0, sizeof(mbstate_t)); +#endif return (fp); } |