changeset 34197:78561a43cdd1

(setup_coding_system): Be sure to initialize coding->category_idx.
author Kenichi Handa <handa@m17n.org>
date Tue, 05 Dec 2000 12:34:56 +0000
parents b20aed6dd753
children 306a480b3f22
files src/coding.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Dec 05 12:32:32 2000 +0000
+++ b/src/coding.c	Tue Dec 05 12:34:56 2000 +0000
@@ -3011,6 +3011,12 @@
 	}
       else
 	coding->type = coding_type_no_conversion;
+      /* Initialize this member.  Any thing other than
+	 CODING_CATEGORY_IDX_UTF_16_BE and
+	 CODING_CATEGORY_IDX_UTF_16_LE are ok because they have
+	 special treatment in detect_eol.  */
+      coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
+
       return 0;
     }