Commit 46d003c3 authored by Keith Packard's avatar Keith Packard
Browse files

Dont attempt to use cache if NULL

parent e54692ac
...@@ -178,6 +178,7 @@ FcDirScan (FcFontSet *set, ...@@ -178,6 +178,7 @@ FcDirScan (FcFontSet *set,
*/ */
if (FcDirCacheReadDir (set, dirs, dir)) if (FcDirCacheReadDir (set, dirs, dir))
{ {
if (cache)
FcGlobalCacheReferenceSubdir (cache, dir); FcGlobalCacheReferenceSubdir (cache, dir);
return FcTrue; return FcTrue;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment