Fix crash with FcConfigSetCurrent(NULL)

This commit is contained in:
Behdad Esfahbod 2013-03-08 05:53:27 -05:00
parent aad4d6f6c6
commit bdf1581e3d
1 changed files with 1 additions and 1 deletions

View File

@ -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;