comparison src/w32fns.c @ 52737:6685d28af4a7

* w32fns.c (w32_load_system_font): Clear all members of FONTP before filling them. * w32bdf.c (w32_load_bdf_font): Likewise.
author Jason Rumney <jasonr@gnu.org>
date Thu, 02 Oct 2003 23:07:28 +0000
parents 695cf19ef79e
children 8787289602d1
comparison
equal deleted inserted replaced
52736:0f3a4331dd8e 52737:6685d28af4a7
4782 if (i == dpyinfo->n_fonts) 4782 if (i == dpyinfo->n_fonts)
4783 ++dpyinfo->n_fonts; 4783 ++dpyinfo->n_fonts;
4784 4784
4785 /* Now fill in the slots of *FONTP. */ 4785 /* Now fill in the slots of *FONTP. */
4786 BLOCK_INPUT; 4786 BLOCK_INPUT;
4787 bzero (fontp, sizeof (*fontp));
4787 fontp->font = font; 4788 fontp->font = font;
4788 fontp->font_idx = i; 4789 fontp->font_idx = i;
4789 fontp->name = (char *) xmalloc (strlen (fontname) + 1); 4790 fontp->name = (char *) xmalloc (strlen (fontname) + 1);
4790 bcopy (fontname, fontp->name, strlen (fontname) + 1); 4791 bcopy (fontname, fontp->name, strlen (fontname) + 1);
4791 4792