Fix flipped return value on unlink. (Reported by Mike Fabian)

This commit is contained in:
Patrick Lam 2005-10-13 12:32:14 +00:00
parent 2eb8437406
commit 1178b56976
2 changed files with 18 additions and 2 deletions

View File

@ -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):

View 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;
}