summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-08-01 01:36:20 +0000
committerKenichi Handa <handa@m17n.org>1997-08-01 01:36:20 +0000
commit40e5d5df3f2ce2c781e478486b1b94b5f673da47 (patch)
tree325a545f7dc314c65e68264a96762ecca642fd7c
parentf7dda95b2b5a02fcffd234eb96711dde4d32256e (diff)
downloademacs-40e5d5df3f2ce2c781e478486b1b94b5f673da47.tar.gz
(Fwrite_region): Don't try to flush out a data twice.
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 3540229cff7..9ad7a42ea2a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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;