diff options
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c index 6de8113dc14..185dc9a493e 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -436,7 +436,9 @@ usage: (call-process PROGRAM &optional INFILE DESTINATION DISPLAY &rest ARGS) * | |||
| 436 | } | 436 | } |
| 437 | if (NILP (path)) | 437 | if (NILP (path)) |
| 438 | { | 438 | { |
| 439 | int openp_errno = errno; | ||
| 439 | emacs_close (filefd); | 440 | emacs_close (filefd); |
| 441 | errno = openp_errno; | ||
| 440 | report_file_error ("Searching for program", Fcons (args[0], Qnil)); | 442 | report_file_error ("Searching for program", Fcons (args[0], Qnil)); |
| 441 | } | 443 | } |
| 442 | 444 | ||