From 7683091c63df05a095c60512abbb380a91b7995e Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 12 Oct 2004 12:19:15 +0000 Subject: [PATCH] (ft_list_generic): Fix for the case of not HAVE_FONTCONFIG. --- src/font-ft.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/font-ft.c b/src/font-ft.c index d171775..006535e 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -486,8 +486,8 @@ ft_list_family (MSymbol family) static MPlist * ft_list_generic (MSymbol generic) { - GenericFamilyInfo *info = msymbol_get (generic, M_generic_family_info); #ifdef HAVE_FONTCONFIG + GenericFamilyInfo *info = msymbol_get (generic, M_generic_family_info); FcPattern *pattern; if (! info) @@ -516,8 +516,10 @@ ft_list_generic (MSymbol generic) i++; } } -#endif /* HAVE_FONTCONFIG */ return info->list; +#else /* not HAVE_FONTCONFIG */ + return NULL; +#endif /* not HAVE_FONTCONFIG */ } -- 1.7.10.4