]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix flipped return value on unlink. (Reported by Mike Fabian)
authorPatrick Lam <plam@MIT.EDU>
Thu, 13 Oct 2005 12:32:14 +0000 (12:32 +0000)
committerPatrick Lam <plam@MIT.EDU>
Thu, 13 Oct 2005 12:32:14 +0000 (12:32 +0000)
ChangeLog
src/fccache.c

index ef860a8981a650dffefbaeb443d3dd2c091d9496..2ccc120bf8f2b798258746248d146ada994d97b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2005-10-13  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheUnlink):
+
+       Fix flipped return value on unlink.  (Reported by Mike Fabian)
+
+2005-10-12  Patrick Lam  <plam@mit.edu>
+
+        * src/fccache.c:
+        * src/fcdir.c (FcDirScanConfig):
+        * src/fcint.h:
+
+        When fc-cache is run without --force, use directory cache files
+        to speed up fc-cache run time.  (Reported by Mike Fabian)
+
 2005-10-06  Patrick Lam  <plam@mit.edu>
 
         * src/fcname.c (FcObjectToPtr):
index 8629385fcf810f081a9570aac5a70100a8a2b9a9..7ccb5295013f3a946146d0af273406faca06855b 100644 (file)
@@ -574,11 +574,13 @@ FcDirCacheUnlink (const FcChar8 *dir)
 {
     FcChar8     *cache_file = FcStrPlus (dir, (FcChar8 *) "/" FC_DIR_CACHE_FILE);
 
-    if (!unlink ((char *)cache_file))
+    if (unlink ((char *)cache_file) != 0)
+    {
+       FcStrFree (cache_file);
         return FcFalse;
+    }
 
     FcStrFree (cache_file);
-
     return FcTrue;
 }