changeset 20448:afef187a070b

(Fcall_process): Don't clobber new_argv[0] in the case of no args.
author Karl Heuer <kwzh@gnu.org>
date Tue, 09 Dec 1997 22:47:45 +0000
parents 5e449f7584b2
children fc965930c738
files src/callproc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Tue Dec 09 22:43:32 1997 +0000
+++ b/src/callproc.c	Tue Dec 09 22:47:45 1997 +0000
@@ -452,8 +452,10 @@
 	    }
 	  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")))