diff options
author | Karl Heuer <kwzh@gnu.org> | 1997-12-09 22:47:45 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1997-12-09 22:47:45 +0000 |
commit | db54baaa69641fe652ab660748428fca4c7e8346 (patch) | |
tree | 39078616f6c4e581ba55953ac3c5e4892f18609f /src/callproc.c | |
parent | 03dbb1e75ab2d6cbe46e28fb5e943d5a88a5f149 (diff) | |
download | emacs-db54baaa69641fe652ab660748428fca4c7e8346.tar.gz |
(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.") } UNGCPRO; } + new_argv[nargs - 3] = 0; } - new_argv[nargs - 3] = 0; + else + new_argv[1] = 0; #ifdef MSDOS /* MW, July 1993 */ if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) |