* fileio.c (Finsert_file_contents): Remove unnecessary code checking fd.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 08:43:04 +0000 (01:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 08:43:04 +0000 (01:43 -0700)
src/ChangeLog
src/fileio.c

index ff9b70c..0b17cb4 100644 (file)
@@ -1,6 +1,7 @@
 2011-04-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
+       (Finsert_file_contents): Remove unnecessary code checking fd.
 
        * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
        Check for integer overflow on size calculations.
index 676eb7f..18aaf45 100644 (file)
@@ -3203,7 +3203,6 @@ variable `last-coding-system-used' to the coding system actually used.  */)
   if (stat (SSDATA (filename), &st) < 0)
 #endif /* WINDOWSNT */
     {
-      if (fd >= 0) emacs_close (fd);
     badopen:
       if (NILP (visit))
        report_file_error ("Opening input file", Fcons (orig_filename, Qnil));