From fdef7d45749917bc6465de816d9012e8747a0860 Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 30 Dec 1998 21:39:51 +0000 Subject: [PATCH] headerLoad() wasn't initializing the usage count CVS patchset: 2627 CVS date: 1998/12/30 21:39:51 --- lib/header.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/header.c b/lib/header.c index 94d8bb8..c91d162 100644 --- a/lib/header.c +++ b/lib/header.c @@ -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; -- 2.7.4