diff options
| author | Kenichi Handa | 2003-10-03 11:36:59 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-10-03 11:36:59 +0000 |
| commit | be2fdba9dfa211aadf2bd5da9c778e1ee3eb96d0 (patch) | |
| tree | c20937d2a85b5a415e78bc6058e54348d6fe8bdf /src/macterm.c | |
| parent | 26a6e439a3b443cfbf9780e1aceeec563f09a105 (diff) | |
| download | emacs-be2fdba9dfa211aadf2bd5da9c778e1ee3eb96d0.tar.gz emacs-be2fdba9dfa211aadf2bd5da9c778e1ee3eb96d0.zip | |
(x_load_font): Clear all members of FONTP before start filling them.
Diffstat (limited to 'src/macterm.c')
| -rw-r--r-- | src/macterm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macterm.c b/src/macterm.c index 8c22d047939..fc9b890db18 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -6240,6 +6240,7 @@ x_load_font (f, fontname, size) | |||
| 6240 | 6240 | ||
| 6241 | /* Now fill in the slots of *FONTP. */ | 6241 | /* Now fill in the slots of *FONTP. */ |
| 6242 | BLOCK_INPUT; | 6242 | BLOCK_INPUT; |
| 6243 | bzero (fontp, sizeof (*fontp)); | ||
| 6243 | fontp->font = font; | 6244 | fontp->font = font; |
| 6244 | fontp->font_idx = i; | 6245 | fontp->font_idx = i; |
| 6245 | fontp->name = (char *) xmalloc (strlen (font->fontname) + 1); | 6246 | fontp->name = (char *) xmalloc (strlen (font->fontname) + 1); |