]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 3540229cff75f1a7ee56c82a0cf2f74f43c57bd2..9ad7a42ea2aa099dba4982798851b3346be2675b 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;