]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcdir.c
Fix up fc-cache and fc-cat for no global cache changes.
[fontconfig.git] / src / fcdir.c
index 62314a325984452c437d9987e6aad0b2d2c3a4ff..c15b7277b10216a9959847f60215150e91546620 100644 (file)
@@ -220,14 +220,11 @@ FcDirScanConfig (FcFontSet        *set,
     for (i = 0; i < filelist->num; i++)
        FcFileScanFontConfig (tmpSet, blanks, filelist->strs[i], config);
     
-    if (FcShouldWriteFiles ())
-    {
-       /*
-        * Now that the directory has been scanned,
-        * write out the cache file
-        */
-       FcDirCacheWrite (tmpSet, dirlist, dir, config);
-    }
+    /*
+     * Now that the directory has been scanned,
+     * write out the cache file
+     */
+    FcDirCacheWrite (tmpSet, dirlist, dir, config);
 
     /*
      * Add the discovered fonts to our internal non-cache list