Don't crash

Not proper fix necessarily. But fixes this crash:
https://bugs.freedesktop.org/show_bug.cgi?id=101889#c81
This commit is contained in:
Behdad Esfahbod 2017-12-18 21:22:21 -05:00
parent e83f8777d5
commit 7ca28c2fed
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ FcFontRenderPrepare (FcConfig *config,
if (!l)
goto bail0;
dir = FcStrDirname (FcValueString (&l->value));
if (FcHashTableFind (config->alias_table, dir, (void **) &alias))
if (config && FcHashTableFind (config->alias_table, dir, (void **) &alias))
{
FcChar8 *base = FcStrBasename (FcValueString (&l->value));
FcChar8 *s = FcStrBuildFilename (alias, base, NULL);