From b82445c48c94aef996ef8d7d52dffa1d264fb561 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 29 May 2012 23:42:30 +0200 Subject: [PATCH] Hash: forgot to include some lines into the #if DEBUG --- libcitadel/lib/hash.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libcitadel/lib/hash.c b/libcitadel/lib/hash.c index e49adb80a..2125cb6f9 100644 --- a/libcitadel/lib/hash.c +++ b/libcitadel/lib/hash.c @@ -177,8 +177,8 @@ int dbg_PrintHash(HashList *Hash, PrintHashContent First, PrintHashContent Secon const char *foo; const char *bar; const char *bla = ""; -#endif long key; +#endif long i; if (Hash == NULL) @@ -198,14 +198,15 @@ int dbg_PrintHash(HashList *Hash, PrintHashContent First, PrintHashContent Secon #ifdef DEBUG foo = ""; bar = ""; -#endif - key = 0; +#endif } else { +#ifdef DEBUG key = Hash->LookupTable[i]->Key; foo = Hash->LookupTable[i]->HashKey; +#endif if (First != NULL) #ifdef DEBUG bar = -- 2.30.2