Fix crash with FcConfigSetCurrent(NULL)
This commit is contained in:
parent
aad4d6f6c6
commit
bdf1581e3d
|
@ -429,7 +429,7 @@ retry:
|
|||
if (config == cfg)
|
||||
return FcTrue;
|
||||
|
||||
if (!config->fonts[FcSetSystem])
|
||||
if (config && !config->fonts[FcSetSystem])
|
||||
if (!FcConfigBuildFonts (config))
|
||||
return FcFalse;
|
||||
|
||||
|
|
Loading…
Reference in New Issue