Dont attempt to use cache if NULL

This commit is contained in:
Keith Packard 2003-02-24 16:51:29 +00:00
parent e54692ac1e
commit 46d003c34e
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ FcDirScan (FcFontSet *set,
*/
if (FcDirCacheReadDir (set, dirs, dir))
{
FcGlobalCacheReferenceSubdir (cache, dir);
if (cache)
FcGlobalCacheReferenceSubdir (cache, dir);
return FcTrue;
}