diff 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
line wrap: on
line diff
--- a/src/w32fns.c	Thu Oct 02 10:15:09 2003 +0000
+++ b/src/w32fns.c	Thu Oct 02 23:07:28 2003 +0000
@@ -4784,6 +4784,7 @@
 
     /* Now fill in the slots of *FONTP.  */
     BLOCK_INPUT;
+    bzero (fontp, sizeof (*fontp));
     fontp->font = font;
     fontp->font_idx = i;
     fontp->name = (char *) xmalloc (strlen (fontname) + 1);