diff options
| author | Jason Rumney | 2003-10-02 23:07:28 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-10-02 23:07:28 +0000 |
| commit | 0d4c2dc2bbbb5ddce109803c8158e8c55c22ddf7 (patch) | |
| tree | 4c3e4d76723a9c2d82007289bab4f9a9714006b1 /src/w32bdf.c | |
| parent | 317e609b97458fce16ee03f191b9acce0b093964 (diff) | |
| download | emacs-0d4c2dc2bbbb5ddce109803c8158e8c55c22ddf7.tar.gz emacs-0d4c2dc2bbbb5ddce109803c8158e8c55c22ddf7.zip | |
* w32fns.c (w32_load_system_font): Clear all members of FONTP before
filling them.
* w32bdf.c (w32_load_bdf_font): Likewise.
Diffstat (limited to 'src/w32bdf.c')
| -rw-r--r-- | src/w32bdf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32bdf.c b/src/w32bdf.c index 8f7718807a3..567030a23e8 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c | |||
| @@ -768,6 +768,7 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname, | |||
| 768 | 768 | ||
| 769 | /* Now fill in the slots of *FONTP. */ | 769 | /* Now fill in the slots of *FONTP. */ |
| 770 | BLOCK_INPUT; | 770 | BLOCK_INPUT; |
| 771 | bzero (fontp, sizeof (*fontp)); | ||
| 771 | fontp->font = font; | 772 | fontp->font = font; |
| 772 | fontp->font_idx = dpyinfo->n_fonts; | 773 | fontp->font_idx = dpyinfo->n_fonts; |
| 773 | fontp->name = (char *) xmalloc (strlen (fontname) + 1); | 774 | fontp->name = (char *) xmalloc (strlen (fontname) + 1); |