Mercurial > emacs
comparison src/macterm.c @ 52742:7f9bdf6cf89b
(x_load_font): Clear all members of FONTP before start filling them.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 03 Oct 2003 11:36:04 +0000 |
parents | 695cf19ef79e |
children | 7d76fa8c5eda |
comparison
equal
deleted
inserted
replaced
52741:e6724841a266 | 52742:7f9bdf6cf89b |
---|---|
6238 if (i == dpyinfo->n_fonts) | 6238 if (i == dpyinfo->n_fonts) |
6239 ++dpyinfo->n_fonts; | 6239 ++dpyinfo->n_fonts; |
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); |
6246 bcopy (font->fontname, fontp->name, strlen (font->fontname) + 1); | 6247 bcopy (font->fontname, fontp->name, strlen (font->fontname) + 1); |
6247 | 6248 |