mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-17 17:29:30 +00:00
(setup_coding_system): Clear all members of the struct
coding_system at first.
This commit is contained in:
parent
c5443913cc
commit
c07c8e12b4
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue