From 57eaf0ba7ea7f88510053688f3c3c4658da83596 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 18 Dec 2017 16:41:04 +0900 Subject: [PATCH] Returns false if key is already available in the table --- src/fchash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fchash.c b/src/fchash.c index 9857abc..54e2334 100644 --- a/src/fchash.c +++ b/src/fchash.c @@ -167,7 +167,7 @@ FcHashTableAdd (FcHashTable *table, table->value_destroy_func (bucket->value); free (bucket); - return !ret; + return FcFalse; } retry: for (prev = &table->buckets[hash % FC_HASH_SIZE];