diff options
author | Richard M. Stallman <[email protected]> | 1998-08-08 01:03:27 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1998-08-08 01:03:27 +0000 |
commit | e7c1c20ebac86159106ab97f06a90a7f15322f59 (patch) | |
tree | dc446d9cd54231542afc58a4ae808b34144be311 | |
parent | 4525f571f59325bf72846c8ab38263f8b78a2e64 (diff) |
(Fcall_process): Check type of process cmd args earlier on.
-rw-r--r-- | src/callproc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c index 7035aed4f5..6a1cfbc2c4 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -246,6 +246,9 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") 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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") { 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++) |