diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2008-12-03 05:00:52 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2008-12-03 05:00:52 +0000 |
commit | 76d126ecc52f1903bb5e1dba5ba7a1fda8da92fa (patch) | |
tree | 1abffb75dcd9835e9832c48c418803df1c0f2b9a /src/ftfont.c | |
parent | 8adb3a3bbbc02f07f8767bffe410ba73a4721068 (diff) | |
download | emacs-76d126ecc52f1903bb5e1dba5ba7a1fda8da92fa.tar.gz |
(ftfont_list_family): Initialize list var earlier.
Diffstat (limited to 'src/ftfont.c')
-rw-r--r-- | src/ftfont.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index c4463fa5c55..23f6a3672d5 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -970,7 +970,7 @@ static Lisp_Object ftfont_list_family (frame) Lisp_Object frame; { - Lisp_Object list; + Lisp_Object list = Qnil; FcPattern *pattern = NULL; FcFontSet *fontset = NULL; FcObjectSet *objset = NULL; @@ -992,7 +992,6 @@ ftfont_list_family (frame) if (! fontset) goto finish; - list = Qnil; for (i = 0; i < fontset->nfont; i++) { FcPattern *pat = fontset->fonts[i]; |