changeset 24460:be35d27a4bfb

(setup_coding_system): Check for CODING_SYSTEM = nil.
author Kenichi Handa <handa@m17n.org>
date Tue, 09 Mar 1999 11:55:12 +0000
parents 4e6a6d86b3af
children 477d5b1ea759
files src/coding.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Mar 09 03:31:10 1999 +0000
+++ b/src/coding.c	Tue Mar 09 11:55:12 1999 +0000
@@ -2851,7 +2851,12 @@
   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]))