(Fcall_process): Don't clobber new_argv[0]
authorKarl Heuer <kwzh@gnu.org>
Tue, 9 Dec 1997 22:47:45 +0000 (22:47 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 9 Dec 1997 22:47:45 +0000 (22:47 +0000)
in the case of no args.

src/callproc.c

index 44edd57..4ded0e8 100644 (file)
@@ -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")))