diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-16 09:39:42 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-07-16 09:39:42 -0700 |
| commit | a9757f6a03cce5ff2931b1125a9a2249573c8e1c (patch) | |
| tree | 540a3b5b9e4fc657ed85749d5ef10b5a125ce1c3 /src/doc.c | |
| parent | c43843aa1ad80cc0e4f6dc2ab523727b10b10a22 (diff) | |
| download | emacs-a9757f6a03cce5ff2931b1125a9a2249573c8e1c.tar.gz | |
* fileio.c (report_file_errno): Fix errno reporting bug.
If the file name is neither null nor a pair, package it up as a
singleton list. All callers changed, both to this function and to
report_file_error. This fixes a bug where the memory allocator
invoked by list1 set errno so that the immediately following
report_file_error reported the wrong errno value.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc.c b/src/doc.c index 04af74102ef..92c7b2c6dc9 100644 --- a/src/doc.c +++ b/src/doc.c @@ -609,7 +609,7 @@ the same file name is found in the `doc-directory'. */) fd = emacs_open (name, O_RDONLY, 0); if (fd < 0) - report_file_error ("Opening doc string file", list1 (build_string (name))); + report_file_error ("Opening doc string file", build_string (name)); Vdoc_file_name = filename; filled = 0; pos = 0; |
