Put back accidentally removed code

This commit is contained in:
Behdad Esfahbod 2017-12-20 12:21:20 -05:00
parent 6d1d44d5ec
commit f8e22fd646
1 changed files with 2 additions and 0 deletions

View File

@ -692,6 +692,8 @@ FcFontRenderPrepare (FcConfig *config,
if (!l)
goto bail0;
dir = FcStrDirname (FcValueString (&l->value));
if (!config)
config = FcConfigGetCurrent ();
if (config && FcHashTableFind (config->alias_table, dir, (void **) &alias))
{
FcChar8 *base = FcStrBasename (FcValueString (&l->value));