diff options
author | Patrick Lam <plam@MIT.EDU> | 2005-11-04 16:48:32 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2005-11-04 16:48:32 +0000 |
commit | 50544b13c19c6a4a9fe9cf26cdd2170ddacf86d1 (patch) | |
tree | 841d4b8de6e9d5e5d2429296eca50b39bbf5e848 | |
parent | e6d3e251ee26f1267585cbbd5a95dc1f7290e225 (diff) |
Add test for validity of directory caches that somehow got lost (reportedfc-2_3_92
by make distcheck).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/fcdir.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,10 @@ 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: * configure.in: diff --git a/src/fcdir.c b/src/fcdir.c index 3b9d23f..5452b60 100644 --- a/src/fcdir.c +++ b/src/fcdir.c @@ -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; } |