diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libio/fileops.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,10 @@ 2011-05-14 Ulrich Drepper <drepper@gmail.com> + * libio/fileops.c (_IO_new_file_close_it): Initialize write_status. + * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before - storing incomplete byte sequence in state object. + storing incomplete byte sequence in state object. Avoid testing for + guaranteed too small input if we know there is enough data available. 2011-05-13 Ulrich Drepper <drepper@gmail.com> diff --git a/libio/fileops.c b/libio/fileops.c index adf4cfa..66c17df 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -175,6 +175,8 @@ _IO_new_file_close_it (fp) else write_status = _IO_SYSSEEK (fp, o, SEEK_SET) < 0 ? EOF : 0; } + else + write_status = 0; INTUSE(_IO_unsave_markers) (fp); |