* fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 change. (Bug#8496)
[bpt/emacs.git] / src / fileio.c
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))