]> git.wh0rd.org - fontconfig.git/commitdiff
Actually use the directories that I added to the global cache. Fixes 'make
authorPatrick Lam <plam@MIT.EDU>
Tue, 31 Jan 2006 04:42:20 +0000 (04:42 +0000)
committerPatrick Lam <plam@MIT.EDU>
Tue, 31 Jan 2006 04:42:20 +0000 (04:42 +0000)
    check'.

ChangeLog
src/fccache.c

index eebf3c0605ad3872bf8f8e749d18860bf840c601..646843ce5bcd0fb738ab72511e4276326efad552 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-30  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcGlobalCacheReadDir):
+
+       Actually use the directories that I added to the global cache.
+       Fixes 'make check'.
+
 2006-01-30  Mike Fabian  <mfabian@suse.de>
        reviewed by: plam
        
index d6cd84079359abe05d48d069046b708c1bd09d59..4b3adff2753d2ae1dd1402bfedd8c8044043a63d 100644 (file)
@@ -313,8 +313,9 @@ FcGlobalCacheLoad (FcGlobalCache    *cache,
 FcBool
 FcGlobalCacheReadDir (FcFontSet *set, FcStrSet *dirs, FcGlobalCache * cache, const char *dir, FcConfig *config)
 {
-    FcGlobalCacheDir *d;
-    FcBool ret = FcFalse;
+    FcGlobalCacheDir   *d;
+    FcBool             ret = FcFalse;
+    int                        i;
 
     if (cache->fd == -1)
        return FcFalse;
@@ -329,8 +330,14 @@ FcGlobalCacheReadDir (FcFontSet *set, FcStrSet *dirs, FcGlobalCache * cache, con
            lseek (cache->fd, d->offset, SEEK_SET);
            if (!FcDirCacheConsume (cache->fd, d->name, set, config))
                return FcFalse;
+
             if (strcmp (d->name, dir) == 0)
+            {
+               for (i = 0; i < d->subdirs->num; i++)
+                   FcStrSetAdd (dirs, (FcChar8 *)d->subdirs->strs[i]);
+
                ret = FcTrue;
+            }
        }
     }