diff options
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index cb72b070b7b..cd0f67fe29b 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -411,7 +411,11 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd, | |||
| 411 | /* If the buffer is (still) a list, it might be a (:file "file") spec. */ | 411 | /* If the buffer is (still) a list, it might be a (:file "file") spec. */ |
| 412 | if (CONSP (buffer) && EQ (XCAR (buffer), QCfile)) | 412 | if (CONSP (buffer) && EQ (XCAR (buffer), QCfile)) |
| 413 | { | 413 | { |
| 414 | output_file = Fexpand_file_name (XCAR (XCDR (buffer)), | 414 | Lisp_Object ofile = XCDR (buffer); |
| 415 | if (CONSP (ofile)) | ||
| 416 | ofile = XCAR (ofile); | ||
| 417 | CHECK_STRING (ofile); | ||
| 418 | output_file = Fexpand_file_name (ofile, | ||
| 415 | BVAR (current_buffer, directory)); | 419 | BVAR (current_buffer, directory)); |
| 416 | CHECK_STRING (output_file); | 420 | CHECK_STRING (output_file); |
| 417 | buffer = Qnil; | 421 | buffer = Qnil; |