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