From: Karl Heuer Date: Mon, 8 Dec 1997 01:35:12 +0000 (+0000) Subject: (read_process_output): Allocate for coding system, if X-Git-Tag: emacs-20.3~2645 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea4496e6c5677a14100f3dc021cbd2d451d36839;p=emacs.git (read_process_output): Allocate for coding system, if not already done. --- 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]); }