headerLoad() wasn't initializing the usage count

CVS patchset: 2627
CVS date: 1998/12/30 21:39:51
This commit is contained in:
ewt 1998-12-30 21:39:51 +00:00
parent 42edfe1749
commit fdef7d4574
1 changed files with 1 additions and 0 deletions

View File

@ -424,6 +424,7 @@ Header headerLoad(void *pv)
h->indexAlloced = il;
h->indexUsed = il;
h->index = malloc(il * sizeof(struct indexEntry));
h->usageCount = 1;
/* This assumes you only headerLoad() something you headerUnload()-ed */
h->sorted = 1;