diff options
| author | Kenichi Handa | 2003-10-02 02:05:42 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-10-02 02:05:42 +0000 |
| commit | e559b126837a19a4fe5d0009adaa56f3257d28bc (patch) | |
| tree | e59371e0cc41f1939df1c31dafaf031e945a1f45 /src | |
| parent | ac1fa19d19107fba650236f699f71def94813dc0 (diff) | |
| download | emacs-e559b126837a19a4fe5d0009adaa56f3257d28bc.tar.gz emacs-e559b126837a19a4fe5d0009adaa56f3257d28bc.zip | |
(x_load_font): Clear all members of FONTP before start filling them.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 13f4d021766..4d4ce822dd0 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9869,6 +9869,7 @@ x_load_font (f, fontname, size) | |||
| 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); |