From 28aefd013d1896ffbf389596109eaec729d5d9a5 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Tue, 31 Jan 2006 07:16:22 +0000 Subject: [PATCH] Toast broken global cache files. reviewed by: plam --- ChangeLog | 7 +++++++ src/fccache.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 646843c..1552c66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-31 Mike Fabian + reviewed by: plam + + * src/fccache.c (FcGlobalCacheLoad): + + Toast broken global cache files. + 2006-01-30 Patrick Lam * src/fccache.c (FcGlobalCacheReadDir): diff --git a/src/fccache.c b/src/fccache.c index 4b3adff..886e652 100644 --- a/src/fccache.c +++ b/src/fccache.c @@ -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, -- 2.39.5