(Fwrite_region): Don't try to flush out a data twice.
authorKenichi Handa <handa@m17n.org>
Fri, 1 Aug 1997 01:36:20 +0000 (01:36 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 1 Aug 1997 01:36:20 +0000 (01:36 +0000)
src/fileio.c

index 3540229..9ad7a42 100644 (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;