Mercurial > emacs
changeset 100163:88dfb64d3e71
(ftfont_list_family): Initialize list var earlier.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 03 Dec 2008 05:00:52 +0000 |
parents | 516a77f9915e |
children | 8234dff2e505 |
files | src/ftfont.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ftfont.c Wed Dec 03 05:00:21 2008 +0000 +++ b/src/ftfont.c Wed Dec 03 05:00:52 2008 +0000 @@ -970,7 +970,7 @@ 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 @@ if (! fontset) goto finish; - list = Qnil; for (i = 0; i < fontset->nfont; i++) { FcPattern *pat = fontset->fonts[i];