From ea4496e6c5677a14100f3dc021cbd2d451d36839 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 8 Dec 1997 01:35:12 +0000 Subject: [PATCH] (read_process_output): Allocate for coding system, if not already done. --- src/process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/process.c b/src/process.c index d33d81f38cf..d05071824de 100644 --- a/src/process.c +++ b/src/process.c @@ -2812,6 +2812,10 @@ read_process_output (proc, channel) if (NILP (p->encode_coding_system)) { p->encode_coding_system = coding->symbol; + if (!proc_encode_coding_system[p->outfd]) + proc_encode_coding_system[p->outfd] + = ((struct coding_system *) + xmalloc (sizeof (struct coding_system))); setup_coding_system (coding->symbol, proc_encode_coding_system[p->outfd]); } -- 2.39.2