Check the system font to be initialized

config->fonts is an array and checking if config->fonts is a null
will not be useful.
This commit is contained in:
Akira TAGOH 2012-12-11 18:53:57 +09:00
parent 58040349e8
commit 9ce36f4bbe
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ FcConfigSetCurrent (FcConfig *config)
if (config == _fcConfig)
return FcTrue;
if (!config->fonts)
if (!config->fonts[FcSetSystem])
if (!FcConfigBuildFonts (config))
return FcFalse;