Hash: forgot to include some lines into the #if DEBUG
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 29 May 2012 21:42:30 +0000 (23:42 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 29 May 2012 21:42:30 +0000 (23:42 +0200)
libcitadel/lib/hash.c

index e49adb80ab55b8fb500aaf6016a52251717f3a2c..2125cb6f945a57da5a0712162b4867876a175a32 100644 (file)
@@ -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 =