summaryrefslogtreecommitdiff
path: root/src/unexcoff.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-07-16 09:39:42 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-07-16 09:39:42 -0700
commita9757f6a03cce5ff2931b1125a9a2249573c8e1c (patch)
tree540a3b5b9e4fc657ed85749d5ef10b5a125ce1c3 /src/unexcoff.c
parentc43843aa1ad80cc0e4f6dc2ab523727b10b10a22 (diff)
downloademacs-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/unexcoff.c')
-rw-r--r--src/unexcoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexcoff.c b/src/unexcoff.c
index 0b45d729710..5ac8ea8c9b0 100644
--- a/src/unexcoff.c
+++ b/src/unexcoff.c
@@ -130,7 +130,7 @@ report_error (const char *file, int fd)
int err = errno;
if (fd)
emacs_close (fd);
- report_file_errno ("Cannot unexec", list1 (build_string (file)), err);
+ report_file_errno ("Cannot unexec", build_string (file), err);
}
#define ERROR0(msg) report_error_1 (new, msg, 0, 0); return -1