From 20f1ef2e3a9525204b408495fed05724dbcb24e6 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 20 Feb 2003 01:54:27 +0000 Subject: [PATCH] (setup_process_coding_systems): If the process's in/out descriptor is -1, do nothing. --- src/ChangeLog | 5 +++++ src/process.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 1358bc780a3..335e180d4ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-02-20 Kenichi Handa + + * process.c (setup_process_coding_systems): If the process's + in/out descriptor is -1, do nothing. + 2003-02-19 Andreas Schwab * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte): Add diff --git a/src/process.c b/src/process.c index fbe3ae69329..77c9e857c04 100644 --- a/src/process.c +++ b/src/process.c @@ -598,6 +598,9 @@ setup_process_coding_systems (process) 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)); -- 2.39.2