X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffcdir.c;h=c15b7277b10216a9959847f60215150e91546620;hb=af180c40376690b7ced5262156fbe13c9ebba1e2;hp=62314a325984452c437d9987e6aad0b2d2c3a4ff;hpb=00f059e930f12ca7c66cf2ffbc6c4ae789912af7;p=fontconfig.git diff --git a/src/fcdir.c b/src/fcdir.c index 62314a3..c15b727 100644 --- a/src/fcdir.c +++ b/src/fcdir.c @@ -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