projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42edfe1
)
headerLoad() wasn't initializing the usage count
author
ewt
<devnull@localhost>
Wed, 30 Dec 1998 21:39:51 +0000
(21:39 +0000)
committer
ewt
<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
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
94d8bb8
..
c91d162
100644
(file)
--- 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;