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:
parent
58040349e8
commit
9ce36f4bbe
|
@ -398,7 +398,7 @@ FcConfigSetCurrent (FcConfig *config)
|
||||||
if (config == _fcConfig)
|
if (config == _fcConfig)
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
|
|
||||||
if (!config->fonts)
|
if (!config->fonts[FcSetSystem])
|
||||||
if (!FcConfigBuildFonts (config))
|
if (!FcConfigBuildFonts (config))
|
||||||
return FcFalse;
|
return FcFalse;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue