diff options
| author | Jason Rumney | 2003-10-02 23:07:28 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-10-02 23:07:28 +0000 |
| commit | 0d4c2dc2bbbb5ddce109803c8158e8c55c22ddf7 (patch) | |
| tree | 4c3e4d76723a9c2d82007289bab4f9a9714006b1 /src/w32fns.c | |
| parent | 317e609b97458fce16ee03f191b9acce0b093964 (diff) | |
| download | emacs-0d4c2dc2bbbb5ddce109803c8158e8c55c22ddf7.tar.gz emacs-0d4c2dc2bbbb5ddce109803c8158e8c55c22ddf7.zip | |
* w32fns.c (w32_load_system_font): Clear all members of FONTP before
filling them.
* w32bdf.c (w32_load_bdf_font): Likewise.
Diffstat (limited to 'src/w32fns.c')
| -rw-r--r-- | src/w32fns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 53d3418c3e7..9a45741c35b 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -4784,6 +4784,7 @@ w32_load_system_font (f,fontname,size) | |||
| 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); |