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:
parent
e83f8777d5
commit
7ca28c2fed
|
@ -653,7 +653,7 @@ FcFontRenderPrepare (FcConfig *config,
|
||||||
if (!l)
|
if (!l)
|
||||||
goto bail0;
|
goto bail0;
|
||||||
dir = FcStrDirname (FcValueString (&l->value));
|
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 *base = FcStrBasename (FcValueString (&l->value));
|
||||||
FcChar8 *s = FcStrBuildFilename (alias, base, NULL);
|
FcChar8 *s = FcStrBuildFilename (alias, base, NULL);
|
||||||
|
|
Loading…
Reference in New Issue