summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-09-27 15:52:58 +0000
committerPatrick Lam <plam@MIT.EDU>2005-09-27 15:52:58 +0000
commit099f9a86834060741dcbdf8b70e32f3a7338925f (patch)
treebf6766bad58b0956682fb2825ae32b0bf17030b4
parent6aee8c6faa2906334b9d9f933440184a256d0b53 (diff)
Don't unlink the fonts.cache-2 file even if there's no data to write; just
write an empty cache file. (thanks Lubos Lunak)
-rw-r--r--src/fccache.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/fccache.c b/src/fccache.c
index e344cf4..16ac30b 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -744,13 +744,6 @@ FcDirCacheWrite (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir)
current_dir_block = FcDirCacheProduce (set, &metadata);
- if (!metadata.count && !dirs->size)
- {
- unlink ((char *)cache_file);
- free (cache_file);
- return FcTrue;
- }
-
if (metadata.count && !current_dir_block)
goto bail;