changeset 19067:299ae0a2c4fd

(Fwrite_region): Don't try to flush out a data twice.
author Kenichi Handa <handa@m17n.org>
date Fri, 01 Aug 1997 01:36:20 +0000
parents f51eb6bca2dd
children 36b06087dc31
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Fri Aug 01 01:22:16 1997 +0000
+++ b/src/fileio.c	Fri Aug 01 01:36:20 1997 +0000
@@ -4076,7 +4076,7 @@
       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;