Commit 28aefd01 authored by Patrick Lam's avatar Patrick Lam
Browse files

Toast broken global cache files.

reviewed by: plam
parent 3616cbe2
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>
* src/fccache.c (FcGlobalCacheReadDir):
......
......@@ -219,9 +219,9 @@ FcGlobalCacheLoad (FcGlobalCache *cache,
cache->updated = FcFalse;
if (!FcCacheReadString (cache->fd, name_buf, sizeof (name_buf)))
return;
goto bail_and_destroy;
if (strcmp (name_buf, FC_GLOBAL_MAGIC_COOKIE) != 0)
return;
goto bail_and_destroy;
current_arch_machine_name = FcCacheMachineSignature ();
current_arch_start = FcCacheSkipToArch(cache->fd,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment