From: Kenichi Handa Date: Tue, 5 Dec 2000 12:34:56 +0000 (+0000) Subject: (setup_coding_system): Be sure to initialize coding->category_idx. X-Git-Tag: emacs-pretest-21.0.93~223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b96232f57f6a21d76b2197e7cbd0e3a001187de;p=emacs.git (setup_coding_system): Be sure to initialize coding->category_idx. --- 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; }