projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f78ec9
)
Hash: forgot to include some lines into the #if DEBUG
author
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 29 May 2012 21:42:30 +0000
(23:42 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 29 May 2012 21:42:30 +0000
(23:42 +0200)
libcitadel/lib/hash.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/hash.c
b/libcitadel/lib/hash.c
index e49adb80ab55b8fb500aaf6016a52251717f3a2c..2125cb6f945a57da5a0712162b4867876a175a32 100644
(file)
--- 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 =