mirror of git://sourceware.org/git/glibc.git
Formerly ../stdio/fwrite.c.~14~
This commit is contained in:
parent
1d00c15186
commit
e7cb15a251
|
|
@ -62,6 +62,12 @@ DEFUN(fwrite, (ptr, size, nmemb, stream),
|
||||||
default_func
|
default_func
|
||||||
= stream->__room_funcs.__output == __default_room_functions.__output;
|
= stream->__room_funcs.__output == __default_room_functions.__output;
|
||||||
|
|
||||||
|
if (__stdio_check_offset (stream) == EOF)
|
||||||
|
{
|
||||||
|
stream->__error = 1;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
if (stream->__buffer == NULL && default_func &&
|
if (stream->__buffer == NULL && default_func &&
|
||||||
stream->__offset == stream->__target)
|
stream->__offset == stream->__target)
|
||||||
write_through:
|
write_through:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue