]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/hash.c
* add new buffer class which handles concatenation of strings in dynamic buffers...
[citadel.git] / libcitadel / lib / hash.c
index 63c80e357b4ade63ed3c773319fa395f4dbb0dee..1de53624da09f57355213fb1b6100bdb1263db85 100644 (file)
@@ -132,8 +132,12 @@ int dbg_PrintHash(HashList *Hash, PrintHashContent First, PrintHashContent Secon
                        foo = Hash->LookupTable[i]->HashKey;
                        if (First != NULL)
                                bar = First(Hash->Members[Hash->LookupTable[i]->Position]->Data);
+                       else 
+                               bar = "";
                        if (Second != NULL)
                                bla = Second(Hash->Members[Hash->LookupTable[i]->Position]->Data);
+                       else
+                               bla = "";
                }
 #ifdef DEBUG
                printf (" ---- Hashkey[%ld][%ld]: '%s' Value: '%s' ; %s\n", i, key, foo, bar, bla);