summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2017-12-19 12:16:48 +0900
committerAkira TAGOH <akira@tagoh.org>2017-12-19 12:16:48 +0900
commitaa85a2b3b6b652c079e895865e800e3d9b60a5f5 (patch)
tree0657c5c969a71a0bd7f6cf0abe0bf76e329c235e /src
parent0b59a65a71b5482aab63a2fe7eff2820f2512941 (diff)
Try to get current instance of FcConfig as far as possible
Diffstat (limited to 'src')
-rw-r--r--src/fcmatch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fcmatch.c b/src/fcmatch.c
index 95bb2040..f06d98aa 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -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));