From: Kenichi Handa Date: Fri, 15 Dec 2000 04:45:53 +0000 (+0000) Subject: (setup_coding_system): Clear all members of the struct X-Git-Tag: emacs-pretest-21.0.95~500 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c07c8e12b449a7f302d0616e8f86d9c4dbb09bad;p=emacs.git (setup_coding_system): Clear all members of the struct coding_system at first. --- diff --git a/src/coding.c b/src/coding.c index 6343187fb06..41e4eb1a8e1 100644 --- a/src/coding.c +++ b/src/coding.c @@ -2985,10 +2985,11 @@ setup_coding_system (coding_system, coding) 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;