aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2000-12-05 12:34:56 +0000
committerKenichi Handa2000-12-05 12:34:56 +0000
commit9b96232f57f6a21d76b2197e7cbd0e3a001187de (patch)
treee0fffd191773e985caa5ad015735b5664195ae63 /src/coding.c
parent91372bb731275e14b26c94c92cd15af60e1e7707 (diff)
downloademacs-9b96232f57f6a21d76b2197e7cbd0e3a001187de.tar.gz
emacs-9b96232f57f6a21d76b2197e7cbd0e3a001187de.zip
(setup_coding_system): Be sure to initialize coding->category_idx.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 6 insertions, 0 deletions
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)
3011 } 3011 }
3012 else 3012 else
3013 coding->type = coding_type_no_conversion; 3013 coding->type = coding_type_no_conversion;
3014 /* Initialize this member. Any thing other than
3015 CODING_CATEGORY_IDX_UTF_16_BE and
3016 CODING_CATEGORY_IDX_UTF_16_LE are ok because they have
3017 special treatment in detect_eol. */
3018 coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
3019
3014 return 0; 3020 return 0;
3015 } 3021 }
3016 3022