]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_load_font): Clear all members of FONTP before start filling them.
authorKenichi Handa <handa@m17n.org>
Thu, 2 Oct 2003 02:05:42 +0000 (02:05 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 2 Oct 2003 02:05:42 +0000 (02:05 +0000)
src/xterm.c

index 13f4d0217669603049399616b6dafad90f0116e8..4d4ce822dd0f77c5beb9f73b3d18c799545b4f2d 100644 (file)
@@ -9869,6 +9869,7 @@ x_load_font (f, fontname, size)
 
     /* Now fill in the slots of *FONTP.  */
     BLOCK_INPUT;
+    bzero (font, sizeof (*font));
     fontp->font = font;
     fontp->font_idx = i;
     fontp->name = (char *) xmalloc (strlen (fontname) + 1);