Toast broken global cache files.

reviewed by: plam
This commit is contained in:
Patrick Lam 2006-01-31 07:16:22 +00:00
parent 3616cbe251
commit 28aefd013d
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2006-01-31 Mike Fabian <mfabian@suse.de>
reviewed by: plam
* src/fccache.c (FcGlobalCacheLoad):
Toast broken global cache files.
2006-01-30 Patrick Lam <plam@mit.edu> 2006-01-30 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcGlobalCacheReadDir): * src/fccache.c (FcGlobalCacheReadDir):

View File

@ -219,9 +219,9 @@ FcGlobalCacheLoad (FcGlobalCache *cache,
cache->updated = FcFalse; cache->updated = FcFalse;
if (!FcCacheReadString (cache->fd, name_buf, sizeof (name_buf))) if (!FcCacheReadString (cache->fd, name_buf, sizeof (name_buf)))
return; goto bail_and_destroy;
if (strcmp (name_buf, FC_GLOBAL_MAGIC_COOKIE) != 0) if (strcmp (name_buf, FC_GLOBAL_MAGIC_COOKIE) != 0)
return; goto bail_and_destroy;
current_arch_machine_name = FcCacheMachineSignature (); current_arch_machine_name = FcCacheMachineSignature ();
current_arch_start = FcCacheSkipToArch(cache->fd, current_arch_start = FcCacheSkipToArch(cache->fd,