Commit f6774c1a authored by Andreas Schwab's avatar Andreas Schwab
Browse files

* image.c (x_find_image_file): Don't close a remote file handle.

parent 18331b90
2013-07-12 Andreas Schwab <schwab@linux-m68k.org>
* image.c (x_find_image_file): Don't close a remote file handle.
2013-07-12 Paul Eggert <eggert@cs.ucla.edu>
Fix races with threads and file descriptors.
......
......@@ -2260,7 +2260,8 @@ x_find_image_file (Lisp_Object file)
else
{
file_found = ENCODE_FILE (file_found);
emacs_close (fd);
if (fd != -2)
emacs_close (fd);
}
return file_found;
......
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