The following commit has been merged in the master branch: commit 91d18ffbaada039bb507fbc3182c23a9941607c6 Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Thu Apr 19 16:59:32 2007 +0200
- hash_init() when doing hash_new(), fixes unitialized table bug.
diff --git a/hash.c b/hash.c index 48147b3..a000099 100644 --- a/hash.c +++ b/hash.c @@ -156,6 +156,7 @@ struct hashtable_t *hash_new(int size, hashdata_compare_cb compare, hashdata_cho debugFree(hash, 1305); return(NULL); } + hash_init(hash); hash->compare= compare; hash->choose= choose; return(hash);