Commit 163c5f32 authored by Paul Eggert's avatar Paul Eggert
Browse files

* fileio.c (Finsert_file_contents): Remove unnecessary code checking fd.

parent 2a47c44d
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.
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment