aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorAndreas Schwab2013-07-12 11:02:30 +0200
committerAndreas Schwab2013-07-12 11:02:30 +0200
commitf6774c1ada3b80488f3aa7f0082df6ed8c114dcc (patch)
tree75f3728bdba8c75e5cd45cecc6b52af61f42fac7 /src/image.c
parent18331b9040f8bf5a7d370c17cd32cf1d5a7a5d80 (diff)
downloademacs-f6774c1ada3b80488f3aa7f0082df6ed8c114dcc.tar.gz
emacs-f6774c1ada3b80488f3aa7f0082df6ed8c114dcc.zip
* image.c (x_find_image_file): Don't close a remote file handle.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 0938a11da7b..00d1836116f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2260,7 +2260,8 @@ x_find_image_file (Lisp_Object file)
2260 else 2260 else
2261 { 2261 {
2262 file_found = ENCODE_FILE (file_found); 2262 file_found = ENCODE_FILE (file_found);
2263 emacs_close (fd); 2263 if (fd != -2)
2264 emacs_close (fd);
2264 } 2265 }
2265 2266
2266 return file_found; 2267 return file_found;