From db54baaa69641fe652ab660748428fca4c7e8346 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 9 Dec 1997 22:47:45 +0000 Subject: [PATCH] (Fcall_process): Don't clobber new_argv[0] in the case of no args. --- src/callproc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"))) -- 2.39.2