From 9b96232f57f6a21d76b2197e7cbd0e3a001187de Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 5 Dec 2000 12:34:56 +0000 Subject: [PATCH] (setup_coding_system): Be sure to initialize coding->category_idx. --- src/coding.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/coding.c b/src/coding.c index 1b2599712a3..62bb2223d22 100644 --- a/src/coding.c +++ b/src/coding.c @@ -3011,6 +3011,12 @@ setup_coding_system (coding_system, coding) } 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; } -- 2.39.5