Fix flipped return value on unlink. (Reported by Mike Fabian)
This commit is contained in:
parent
2eb8437406
commit
1178b56976
14
ChangeLog
14
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>
|
2005-10-06 Patrick Lam <plam@mit.edu>
|
||||||
|
|
||||||
* src/fcname.c (FcObjectToPtr):
|
* src/fcname.c (FcObjectToPtr):
|
||||||
|
|
|
@ -574,11 +574,13 @@ FcDirCacheUnlink (const FcChar8 *dir)
|
||||||
{
|
{
|
||||||
FcChar8 *cache_file = FcStrPlus (dir, (FcChar8 *) "/" FC_DIR_CACHE_FILE);
|
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;
|
return FcFalse;
|
||||||
|
}
|
||||||
|
|
||||||
FcStrFree (cache_file);
|
FcStrFree (cache_file);
|
||||||
|
|
||||||
return FcTrue;
|
return FcTrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue