Commit aa85a2b3 authored by Akira TAGOH's avatar Akira TAGOH

Try to get current instance of FcConfig as far as possible

parent 0b59a65a
......@@ -653,6 +653,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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment