From 2b0e94ef0c013191d5a1991796bd845ab424277e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 10 May 2008 08:42:41 +0000 Subject: [PATCH] * made GetCount NULL pointer aware since its safe to say that a non existant hash has 0 entries. --- libcitadel/lib/hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libcitadel/lib/hash.c b/libcitadel/lib/hash.c index 3908121d9..65d0519b5 100644 --- a/libcitadel/lib/hash.c +++ b/libcitadel/lib/hash.c @@ -165,6 +165,7 @@ HashList *NewHash(int Uniq, HashFunc F) int GetCount(HashList *Hash) { + if(Hash==NULL) return 0; return Hash->nMembersUsed; } -- 2.30.2