summaryrefslogtreecommitdiff
path: root/src/fcdir.c
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-11-04 16:48:32 +0000
committerPatrick Lam <plam@MIT.EDU>2005-11-04 16:48:32 +0000
commit50544b13c19c6a4a9fe9cf26cdd2170ddacf86d1 (patch)
tree841d4b8de6e9d5e5d2429296eca50b39bbf5e848 /src/fcdir.c
parente6d3e251ee26f1267585cbbd5a95dc1f7290e225 (diff)
Add test for validity of directory caches that somehow got lost (reportedfc-2_3_92
by make distcheck).
Diffstat (limited to 'src/fcdir.c')
-rw-r--r--src/fcdir.c2
1 files changed, 1 insertions, 1 deletions
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;
}