Add test for validity of directory caches that somehow got lost (reported

by make distcheck).
This commit is contained in:
Patrick Lam 2005-11-04 16:48:32 +00:00
parent e6d3e251ee
commit 50544b13c1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-11-04 Patrick Lam <plam@mit.edu>
* src/fcdir.c (FcDirScanConfig):
Add test for validity of directory caches that
somehow got lost (reported by make distcheck).
2005-11-04 Patrick Lam <plam@mit.edu>
* ChangeLog:
* README:

View File

@ -139,7 +139,7 @@ FcDirScanConfig (FcFontSet *set,
if (cache && FcGlobalCacheReadDir (set, dirs, cache, (char *)dir, config))
return FcTrue;
if (FcDirCacheRead (set, dirs, dir))
if (FcDirCacheValid (dir) && FcDirCacheRead (set, dirs, dir))
return FcTrue;
}