From 8e662997af070e32b49197e0dadc22c60f877549 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 1 Aug 1997 01:36:20 +0000 Subject: [PATCH] (Fwrite_region): Don't try to flush out a data twice. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2