* fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496)
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 14 Apr 2011 07:56:52 +0000 (09:56 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 14 Apr 2011 07:56:52 +0000 (09:56 +0200)
src/ChangeLog
src/fileio.c

index d2c95ae..11ae63f 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-14  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13
+       change.  (Bug#8496)
+
 2011-04-13  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init
index 7e2d888..8fd8995 100644 (file)
@@ -3800,7 +3800,7 @@ variable `last-coding-system-used' to the coding system actually used.  */)
     /* For a special file, all we can do is guess.  */
     total = READ_BUF_SIZE;
 
-  if (NILP (visit) && inserted > 0)
+  if (NILP (visit) && total > 0)
     {
 #ifdef CLASH_DETECTION
       if (!NILP (BVAR (current_buffer, file_truename))