Fix a crash

segfault happens when the config needs to be migrated to XDG's
and no definition for include with prefix="xdg"
This commit is contained in:
Akira TAGOH 2015-05-22 20:46:54 +09:00
parent 249306fbd7
commit f053231186
1 changed files with 1 additions and 0 deletions

View File

@ -2388,6 +2388,7 @@ FcParseInclude (FcConfigParse *parse)
filename = FcConfigFilename(s);
if (deprecated == FcTrue &&
filename != NULL &&
userdir != NULL &&
!FcFileIsLink (filename))
{
if (FcFileIsDir (filename))