# HG changeset patch # User Kenichi Handa # Date 976019696 0 # Node ID 78561a43cdd1763cce5d3902918d555e1cd08112 # Parent b20aed6dd7530f693f8986e25ecd7968b6794ec2 (setup_coding_system): Be sure to initialize coding->category_idx. diff -r b20aed6dd753 -r 78561a43cdd1 src/coding.c --- 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; }