From ebaeb6425e15638cfce1db80286dfac4c6987621 Mon Sep 17 00:00:00 2001 From: Teijo Kinnunen Date: Tue, 17 Aug 2010 07:40:55 +0200 Subject: [PATCH] Fix Savannah bug #30788. * src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for NULL too. --- ChangeLog | 7 +++++++ src/cache/ftccache.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 10d81e40c..c6795938b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-08-17 Teijo Kinnunen + + Fix Savannah bug #30788. + + * src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for + NULL too. + 2010-08-10 Werner Lemberg Try to fix Savannah bug #30717 (and probably #30719 too). diff --git a/src/cache/ftccache.c b/src/cache/ftccache.c index 67affeacb..e0d43d5ad 100644 --- a/src/cache/ftccache.c +++ b/src/cache/ftccache.c @@ -346,7 +346,7 @@ static void FTC_Cache_Clear( FTC_Cache cache ) { - if ( cache ) + if ( cache && cache->buckets ) { FTC_Manager manager = cache->manager; FT_UFast i;