diff options
author | Kenichi Handa <handa@m17n.org> | 2003-10-03 11:36:59 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2003-10-03 11:36:59 +0000 |
commit | be2fdba9dfa211aadf2bd5da9c778e1ee3eb96d0 (patch) | |
tree | c20937d2a85b5a415e78bc6058e54348d6fe8bdf /src/macterm.c | |
parent | 26a6e439a3b443cfbf9780e1aceeec563f09a105 (diff) | |
download | emacs-be2fdba9dfa211aadf2bd5da9c778e1ee3eb96d0.tar.gz |
(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) /* Now fill in the slots of *FONTP. */ BLOCK_INPUT; + bzero (fontp, sizeof (*fontp)); fontp->font = font; fontp->font_idx = i; fontp->name = (char *) xmalloc (strlen (font->fontname) + 1); |