aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorKarl Heuer1997-12-08 01:35:12 +0000
committerKarl Heuer1997-12-08 01:35:12 +0000
commitea4496e6c5677a14100f3dc021cbd2d451d36839 (patch)
tree53a5e52a85dffd5dd2a143a80c64fd23f7cda3a6 /src/process.c
parent44248b7f0d70535cd92e56612f3dc7f2e2fd583c (diff)
downloademacs-ea4496e6c5677a14100f3dc021cbd2d451d36839.tar.gz
emacs-ea4496e6c5677a14100f3dc021cbd2d451d36839.zip
(read_process_output): Allocate for coding system, if
not already done.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
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)
2812 if (NILP (p->encode_coding_system)) 2812 if (NILP (p->encode_coding_system))
2813 { 2813 {
2814 p->encode_coding_system = coding->symbol; 2814 p->encode_coding_system = coding->symbol;
2815 if (!proc_encode_coding_system[p->outfd])
2816 proc_encode_coding_system[p->outfd]
2817 = ((struct coding_system *)
2818 xmalloc (sizeof (struct coding_system)));
2815 setup_coding_system (coding->symbol, 2819 setup_coding_system (coding->symbol,
2816 proc_encode_coding_system[p->outfd]); 2820 proc_encode_coding_system[p->outfd]);
2817 } 2821 }