summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2015-05-22 20:46:54 +0900
committerAkira TAGOH <akira@tagoh.org>2015-05-22 20:46:54 +0900
commitf053231186fc340b5365a59eea30db5af787877a (patch)
treee2094d70391ed6210d0dd5f994a096231b0ac305
parent249306fbd782570cf958675672d21cf12aa1f14e (diff)
Fix a crash
segfault happens when the config needs to be migrated to XDG's and no definition for include with prefix="xdg"
-rw-r--r--src/fcxml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fcxml.c b/src/fcxml.c
index ba38203..d471569 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -2388,6 +2388,7 @@ FcParseInclude (FcConfigParse *parse)
filename = FcConfigFilename(s);
if (deprecated == FcTrue &&
filename != NULL &&
+ userdir != NULL &&
!FcFileIsLink (filename))
{
if (FcFileIsDir (filename))