From: Wilfried Goesgens Date: Tue, 29 May 2012 21:42:30 +0000 (+0200) Subject: Hash: forgot to include some lines into the #if DEBUG X-Git-Tag: v8.12~46 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=b82445c48c94aef996ef8d7d52dffa1d264fb561;hp=0f78ec967e0d2038722dddc0194cf11de59dc623;p=citadel.git Hash: forgot to include some lines into the #if DEBUG --- 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 =