summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-12-18 21:22:21 -0500
committerBehdad Esfahbod <behdad@behdad.org>2017-12-18 21:22:21 -0500
commit7ca28c2fedb34c1db5ee3116d335f15195859db0 (patch)
tree401b9642f3cae5389335bb3ea7d3bb498436a1b1 /src
parente83f8777d555b40127f7035b5639955a70ad7dfd (diff)
Don't crash
Not proper fix necessarily. But fixes this crash: https://bugs.freedesktop.org/show_bug.cgi?id=101889#c81
Diffstat (limited to 'src')
-rw-r--r--src/fcmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcmatch.c b/src/fcmatch.c
index 5d30cc7e..95bb2040 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -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);