diff options
| author | Kenichi Handa | 2003-02-20 01:54:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-02-20 01:54:27 +0000 |
| commit | 20f1ef2e3a9525204b408495fed05724dbcb24e6 (patch) | |
| tree | 685e3536c5a7aa1496ba78006f53acd0020c4c87 /src/process.c | |
| parent | ad6b2a3685d710bfd5ffb98021330133e9a09883 (diff) | |
| download | emacs-20f1ef2e3a9525204b408495fed05724dbcb24e6.tar.gz emacs-20f1ef2e3a9525204b408495fed05724dbcb24e6.zip | |
(setup_process_coding_systems): If the process's
in/out descriptor is -1, do nothing.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 598 | int inch = XINT (p->infd); | 598 | int inch = XINT (p->infd); |
| 599 | int outch = XINT (p->outfd); | 599 | int outch = XINT (p->outfd); |
| 600 | 600 | ||
| 601 | if (inch < 0 || outch < 0) | ||
| 602 | return; | ||
| 603 | |||
| 601 | if (!proc_decode_coding_system[inch]) | 604 | if (!proc_decode_coding_system[inch]) |
| 602 | proc_decode_coding_system[inch] | 605 | proc_decode_coding_system[inch] |
| 603 | = (struct coding_system *) xmalloc (sizeof (struct coding_system)); | 606 | = (struct coding_system *) xmalloc (sizeof (struct coding_system)); |