diff options
| author | Karl Heuer | 1997-12-09 22:47:45 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-12-09 22:47:45 +0000 |
| commit | db54baaa69641fe652ab660748428fca4c7e8346 (patch) | |
| tree | 39078616f6c4e581ba55953ac3c5e4892f18609f /src/callproc.c | |
| parent | 03dbb1e75ab2d6cbe46e28fb5e943d5a88a5f149 (diff) | |
| download | emacs-db54baaa69641fe652ab660748428fca4c7e8346.tar.gz emacs-db54baaa69641fe652ab660748428fca4c7e8346.zip | |
(Fcall_process): Don't clobber new_argv[0]
in the case of no args.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 44edd572e80..4ded0e8efa5 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -452,8 +452,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") | |||
| 452 | } | 452 | } |
| 453 | UNGCPRO; | 453 | UNGCPRO; |
| 454 | } | 454 | } |
| 455 | new_argv[nargs - 3] = 0; | ||
| 455 | } | 456 | } |
| 456 | new_argv[nargs - 3] = 0; | 457 | else |
| 458 | new_argv[1] = 0; | ||
| 457 | 459 | ||
| 458 | #ifdef MSDOS /* MW, July 1993 */ | 460 | #ifdef MSDOS /* MW, July 1993 */ |
| 459 | if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) | 461 | if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) |