changeset 49872:012ced9cf144

(setup_process_coding_systems): If the process's in/out descriptor is -1, do nothing.
author Kenichi Handa <handa@m17n.org>
date Thu, 20 Feb 2003 01:54:09 +0000
parents 4f204ad4bdf9
children fe797a043c4d
files src/process.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Wed Feb 19 21:23:59 2003 +0000
+++ b/src/process.c	Thu Feb 20 01:54:09 2003 +0000
@@ -598,6 +598,9 @@
   int inch = XINT (p->infd);
   int outch = XINT (p->outfd);
 
+  if (inch < 0 || outch < 0)
+    return;
+
   if (!proc_decode_coding_system[inch])
     proc_decode_coding_system[inch]
       = (struct coding_system *) xmalloc (sizeof (struct coding_system));