diff options
| author | Kenichi Handa | 2000-12-15 04:45:53 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-12-15 04:45:53 +0000 |
| commit | c07c8e12b449a7f302d0616e8f86d9c4dbb09bad (patch) | |
| tree | ad0b2849b5bf5cb52b216cecf2f7d2678de86454 /src/coding.c | |
| parent | c5443913cccfa1b8f655b76f4831bb350b644ba7 (diff) | |
| download | emacs-c07c8e12b449a7f302d0616e8f86d9c4dbb09bad.tar.gz emacs-c07c8e12b449a7f302d0616e8f86d9c4dbb09bad.zip | |
(setup_coding_system): Clear all members of the struct
coding_system at first.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
| 2985 | Lisp_Object val; | 2985 | Lisp_Object val; |
| 2986 | int i; | 2986 | int i; |
| 2987 | 2987 | ||
| 2988 | /* At first, zero clear all members. */ | ||
| 2989 | bzero (coding, sizeof (struct coding_system)); | ||
| 2990 | |||
| 2988 | /* Initialize some fields required for all kinds of coding systems. */ | 2991 | /* Initialize some fields required for all kinds of coding systems. */ |
| 2989 | coding->symbol = coding_system; | 2992 | coding->symbol = coding_system; |
| 2990 | coding->common_flags = 0; | ||
| 2991 | coding->mode = 0; | ||
| 2992 | coding->heading_ascii = -1; | 2993 | coding->heading_ascii = -1; |
| 2993 | coding->post_read_conversion = coding->pre_write_conversion = Qnil; | 2994 | coding->post_read_conversion = coding->pre_write_conversion = Qnil; |
| 2994 | coding->composing = COMPOSITION_DISABLED; | 2995 | coding->composing = COMPOSITION_DISABLED; |