comparison src/xterm.c @ 52728:5c843bc4a3de

(x_load_font): Clear all members of FONTP before start filling them.
author Kenichi Handa <handa@m17n.org>
date Thu, 02 Oct 2003 02:05:42 +0000
parents 4a9a4669a2b1
children 7535333d9c75
comparison
equal deleted inserted replaced
52727:0470caf8112d 52728:5c843bc4a3de
9867 if (i == dpyinfo->n_fonts) 9867 if (i == dpyinfo->n_fonts)
9868 ++dpyinfo->n_fonts; 9868 ++dpyinfo->n_fonts;
9869 9869
9870 /* Now fill in the slots of *FONTP. */ 9870 /* Now fill in the slots of *FONTP. */
9871 BLOCK_INPUT; 9871 BLOCK_INPUT;
9872 bzero (font, sizeof (*font));
9872 fontp->font = font; 9873 fontp->font = font;
9873 fontp->font_idx = i; 9874 fontp->font_idx = i;
9874 fontp->name = (char *) xmalloc (strlen (fontname) + 1); 9875 fontp->name = (char *) xmalloc (strlen (fontname) + 1);
9875 bcopy (fontname, fontp->name, strlen (fontname) + 1); 9876 bcopy (fontname, fontp->name, strlen (fontname) + 1);
9876 9877