diff options
| author | Kenichi Handa | 1999-03-09 11:55:12 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-03-09 11:55:12 +0000 |
| commit | 1f5dbf34c758de48611db1e16a286d51f4a316a5 (patch) | |
| tree | dae533453edd636abd3041261d395f4285310193 /src/coding.c | |
| parent | e3a5b8ae8441aff6024fbcca0a0e6eb433c987e0 (diff) | |
| download | emacs-1f5dbf34c758de48611db1e16a286d51f4a316a5.tar.gz emacs-1f5dbf34c758de48611db1e16a286d51f4a316a5.zip | |
(setup_coding_system): Check for CODING_SYSTEM = nil.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index a31e3ea8bce..cf6bab223bb 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -2851,7 +2851,12 @@ setup_coding_system (coding_system, coding) | |||
| 2851 | coding->mode = 0; | 2851 | coding->mode = 0; |
| 2852 | coding->heading_ascii = -1; | 2852 | coding->heading_ascii = -1; |
| 2853 | coding->post_read_conversion = coding->pre_write_conversion = Qnil; | 2853 | coding->post_read_conversion = coding->pre_write_conversion = Qnil; |
| 2854 | |||
| 2855 | if (NILP (coding_system)) | ||
| 2856 | goto label_invalid_coding_system; | ||
| 2857 | |||
| 2854 | coding_spec = Fget (coding_system, Qcoding_system); | 2858 | coding_spec = Fget (coding_system, Qcoding_system); |
| 2859 | |||
| 2855 | if (!VECTORP (coding_spec) | 2860 | if (!VECTORP (coding_spec) |
| 2856 | || XVECTOR (coding_spec)->size != 5 | 2861 | || XVECTOR (coding_spec)->size != 5 |
| 2857 | || !CONSP (XVECTOR (coding_spec)->contents[3])) | 2862 | || !CONSP (XVECTOR (coding_spec)->contents[3])) |