Dont attempt to use cache if NULL
This commit is contained in:
parent
e54692ac1e
commit
46d003c34e
|
@ -178,7 +178,8 @@ FcDirScan (FcFontSet *set,
|
|||
*/
|
||||
if (FcDirCacheReadDir (set, dirs, dir))
|
||||
{
|
||||
FcGlobalCacheReferenceSubdir (cache, dir);
|
||||
if (cache)
|
||||
FcGlobalCacheReferenceSubdir (cache, dir);
|
||||
return FcTrue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue