changeset 34591:9d5d795f9315

(setup_coding_system): Clear all members of the struct coding_system at first.
author Kenichi Handa <handa@m17n.org>
date Fri, 15 Dec 2000 04:45:53 +0000
parents eccc63bf2540
children 726f3f38d889
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Fri Dec 15 04:45:38 2000 +0000
+++ b/src/coding.c	Fri Dec 15 04:45:53 2000 +0000
@@ -2985,10 +2985,11 @@
   Lisp_Object val;
   int i;
 
+  /* At first, zero clear all members.  */
+  bzero (coding, sizeof (struct coding_system));
+
   /* Initialize some fields required for all kinds of coding systems.  */
   coding->symbol = coding_system;
-  coding->common_flags = 0;
-  coding->mode = 0;
   coding->heading_ascii = -1;
   coding->post_read_conversion = coding->pre_write_conversion = Qnil;
   coding->composing = COMPOSITION_DISABLED;