changeset 22940:3cfe86230c87

(Fcall_process): Check type of process cmd args earlier on.
author Richard M. Stallman <rms@gnu.org>
date Sat, 08 Aug 1998 01:03:27 +0000
parents 572895549f80
children b00170a05570
files src/callproc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Sat Aug 08 00:49:24 1998 +0000
+++ b/src/callproc.c	Sat Aug 08 01:03:27 1998 +0000
@@ -246,6 +246,9 @@
 	int must_encode = 0;
 
 	for (i = 4; i < nargs; i++)
+	  CHECK_STRING (args[i], i);
+
+	for (i = 4; i < nargs; i++)
 	  if (STRING_MULTIBYTE (args[i]))
 	    must_encode = 1;
 
@@ -401,8 +404,6 @@
     {
       register int i;
 
-      for (i = 4; i < nargs; i++) CHECK_STRING (args[i], i);
-
       if (! CODING_REQUIRE_ENCODING (&argument_coding))
 	{
 	  for (i = 4; i < nargs; i++)