]> git.eshelyaron.com Git - emacs.git/commitdiff
* w32fns.c (w32_load_system_font): Clear all members of FONTP before
authorJason Rumney <jasonr@gnu.org>
Thu, 2 Oct 2003 23:07:28 +0000 (23:07 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 2 Oct 2003 23:07:28 +0000 (23:07 +0000)
filling them.
* w32bdf.c (w32_load_bdf_font): Likewise.

src/ChangeLog
src/w32bdf.c
src/w32fns.c

index 34307c3895688b9f201b0c4aff685ea0cfc5c00c..db7f5ce58b7c3c1d745169b46558a55d81d4676a 100644 (file)
@@ -1,3 +1,10 @@
+2003-10-02  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (w32_load_system_font): Clear all members of FONTP before
+       filling them.
+
+       * w32bdf.c (w32_load_bdf_font): Likewise.
+
 2003-09-30  Richard M. Stallman  <rms@gnu.org>
 
        * term.c (set_tty_color_mode): Calculate current_mode_spec
index 8f7718807a34567b9a15a833f3206840525ef8fe..567030a23e8abee7a6cb27894b0444bb286a5ad2 100644 (file)
@@ -768,6 +768,7 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname,
 
   /* Now fill in the slots of *FONTP.  */
   BLOCK_INPUT;
+  bzero (fontp, sizeof (*fontp));
   fontp->font = font;
   fontp->font_idx = dpyinfo->n_fonts;
   fontp->name = (char *) xmalloc (strlen (fontname) + 1);
index 53d3418c3e7d436cd8d1168a76d673bc8059b18c..9a45741c35b8114823d87e0cf2afe60a17b53b97 100644 (file)
@@ -4784,6 +4784,7 @@ w32_load_system_font (f,fontname,size)
 
     /* 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);