X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftermlists.c;h=027d057018c52cd962a9b9915d8a0fb625169387;hb=717296a6a0e0a47ab62fea3597fea7ea7b9177f9;hp=6c8549597d9dde33301c5fa7737a20acd892edc2;hpb=77b4d51d81340f3374ae8a97aea0177a0fbcd336;p=pazpar2-moved-to-github.git diff --git a/src/termlists.c b/src/termlists.c index 6c85495..027d057 100644 --- a/src/termlists.c +++ b/src/termlists.c @@ -1,5 +1,5 @@ /* - * $Id: termlists.c,v 1.3 2007-01-08 18:32:35 quinn Exp $ + * $Id: termlists.c,v 1.4 2007-01-10 10:04:23 adam Exp $ */ #include @@ -69,7 +69,7 @@ struct termlist *termlist_create(NMEM nmem, int numterms, int highscore_size) hashsize <<= 1; res = nmem_malloc(nmem, sizeof(struct termlist)); res->hashtable = nmem_malloc(nmem, hashsize * sizeof(struct termlist_bucket*)); - bzero(res->hashtable, hashsize * sizeof(struct termlist_bucket*)); + memset(res->hashtable, 0, hashsize * sizeof(struct termlist_bucket*)); res->hashtable_size = hashsize; res->nmem = nmem; res->hashmask = hashsize - 1; // Creates a bitmask