aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc.c b/src/doc.c
index 6e7906578a4..a20ecbdb753 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -126,9 +126,6 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
126 fd = emacs_open (name, O_RDONLY, 0); 126 fd = emacs_open (name, O_RDONLY, 0);
127 if (fd < 0) 127 if (fd < 0)
128 { 128 {
129 if ((errno == EMFILE) || (errno == ENFILE))
130 report_file_error ("Read error on documentation file", file);
131
132#ifndef CANNOT_DUMP 129#ifndef CANNOT_DUMP
133 if (!NILP (Vpurify_flag)) 130 if (!NILP (Vpurify_flag))
134 { 131 {
@@ -141,6 +138,9 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition)
141#endif 138#endif
142 if (fd < 0) 139 if (fd < 0)
143 { 140 {
141 if (errno == EMFILE || errno == ENFILE)
142 report_file_error ("Read error on documentation file", file);
143
144 SAFE_FREE (); 144 SAFE_FREE ();
145 AUTO_STRING (cannot_open, "Cannot open doc string file \""); 145 AUTO_STRING (cannot_open, "Cannot open doc string file \"");
146 AUTO_STRING (quote_nl, "\"\n"); 146 AUTO_STRING (quote_nl, "\"\n");