Add test for validity of directory caches that somehow got lost (reported
by make distcheck).
This commit is contained in:
parent
e6d3e251ee
commit
50544b13c1
|
@ -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>
|
2005-11-04 Patrick Lam <plam@mit.edu>
|
||||||
* ChangeLog:
|
* ChangeLog:
|
||||||
* README:
|
* README:
|
||||||
|
|
|
@ -139,7 +139,7 @@ FcDirScanConfig (FcFontSet *set,
|
||||||
if (cache && FcGlobalCacheReadDir (set, dirs, cache, (char *)dir, config))
|
if (cache && FcGlobalCacheReadDir (set, dirs, cache, (char *)dir, config))
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
|
|
||||||
if (FcDirCacheRead (set, dirs, dir))
|
if (FcDirCacheValid (dir) && FcDirCacheRead (set, dirs, dir))
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue