summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-12-20 12:21:20 -0500
committerBehdad Esfahbod <behdad@behdad.org>2017-12-20 12:21:20 -0500
commitf8e22fd6469cd14fe13ba657b5c5b66a884b614d (patch)
tree21cc7576efd4691cd72d50345e20a97a717fbc8b /src
parent6d1d44d5ec5100a3db850dddd7b4e4196e8a5cdb (diff)
Put back accidentally removed code
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 22c37840..62f8e582 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -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));