From 9a38e3dd35920d2817a301c7d445cf81d4343c77 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 20 Mar 2004 20:44:45 +0000 Subject: [PATCH] * src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL value for `selection' as `select all'. --- ChangeLog | 5 +++++ src/cache/ftcmru.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 933b85782..13cc16bfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-20 Steve Hartwell + + * src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL + value for `selection' as `select all'. + 2004-03-19 Steve Hartwell * src/sfnt/ttload.c (tt_face_load_sfnt_header): Reject face_index diff --git a/src/cache/ftcmru.c b/src/cache/ftcmru.c index 4b2a7fff5..d4f733a11 100644 --- a/src/cache/ftcmru.c +++ b/src/cache/ftcmru.c @@ -330,7 +330,7 @@ first = list->nodes; - while ( first && selection( first, key ) ) + while ( first && ( selection == NULL || selection( first, key ) ) ) { FTC_MruList_Remove( list, first ); first = list->nodes;