Commit 1f5dbf34 authored by Kenichi Handa's avatar Kenichi Handa

(setup_coding_system): Check for CODING_SYSTEM = nil.

parent e3a5b8ae
......@@ -2851,7 +2851,12 @@ setup_coding_system (coding_system, coding)
coding->mode = 0;
coding->heading_ascii = -1;
coding->post_read_conversion = coding->pre_write_conversion = Qnil;
if (NILP (coding_system))
goto label_invalid_coding_system;
coding_spec = Fget (coding_system, Qcoding_system);
if (!VECTORP (coding_spec)
|| XVECTOR (coding_spec)->size != 5
|| !CONSP (XVECTOR (coding_spec)->contents[3]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment