(Fwrite_region): Don't try to flush out a data twice.

This commit is contained in:
Kenichi Handa 1997-08-01 01:36:20 +00:00
parent 40e82ac184
commit 8e662997af

View file

@ -4076,7 +4076,7 @@ to the file, instead of any buffer contents, and END is ignored.")
save_errno = errno;
}
if (coding.require_flushing)
if (coding.require_flushing && !coding.last_block)
{
/* We have to flush out a data. */
coding.last_block = 1;