From 43d262259a7fe784160c2b93aabce9cc9cad0190 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 10 Dec 2006 16:09:48 +0000 Subject: [PATCH] Fixed list initializations. --- lib/silcapputil/silcidcache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/silcapputil/silcidcache.c b/lib/silcapputil/silcidcache.c index c0824b2c..68c0f8af 100644 --- a/lib/silcapputil/silcidcache.c +++ b/lib/silcapputil/silcidcache.c @@ -281,6 +281,7 @@ SilcBool silc_idcache_get_all(SilcIDCache cache, SilcList *ret_list) if (!silc_hash_table_count(cache->id_table)) return FALSE; + silc_list_init(*ret_list, struct SilcIDCacheEntryStruct, next); silc_hash_table_foreach(cache->id_table, silc_idcache_get_all_foreach, ret_list); @@ -301,6 +302,7 @@ SilcBool silc_idcache_find_by_id(SilcIDCache cache, void *id, if (!silc_hash_table_count(cache->id_table)) return FALSE; + silc_list_init(*ret_list, struct SilcIDCacheEntryStruct, next); silc_hash_table_find_foreach(cache->id_table, id, silc_idcache_get_all_foreach, ret_list); @@ -341,6 +343,7 @@ SilcBool silc_idcache_find_by_name(SilcIDCache cache, char *name, if (!silc_hash_table_count(cache->name_table)) return FALSE; + silc_list_init(*ret_list, struct SilcIDCacheEntryStruct, next); silc_hash_table_find_foreach(cache->name_table, name, silc_idcache_get_all_foreach, ret_list); -- 2.24.0