Mercurial > emacs
diff src/coding.c @ 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 | aa667988f2b0 |
| children | f727eb496b4e |
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;
