headerLoad() wasn't initializing the usage count
authorewt <devnull@localhost>
Wed, 30 Dec 1998 21:39:51 +0000 (21:39 +0000)
committerewt <devnull@localhost>
Wed, 30 Dec 1998 21:39:51 +0000 (21:39 +0000)
CVS patchset: 2627
CVS date: 1998/12/30 21:39:51

lib/header.c

index 94d8bb8..c91d162 100644 (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;