diff options
author | marc <devnull@localhost> | 1995-12-18 18:00:28 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1995-12-18 18:00:28 +0000 |
commit | ba10e3d22e70bda01ece1752567f945c89c37159 (patch) | |
tree | 5a91d833f148a41905a507713cedf2696e7d1d2d /lib/header.c | |
parent | ec6594f3e44724dd523df9b67a31f6fe4a95f7b5 (diff) | |
download | rpm-ba10e3d22e70bda01ece1752567f945c89c37159.tar.gz rpm-ba10e3d22e70bda01ece1752567f945c89c37159.tar.bz2 rpm-ba10e3d22e70bda01ece1752567f945c89c37159.zip |
allow NULL to be passed for count in getEntry()
CVS patchset: 52
CVS date: 1995/12/18 18:00:28
Diffstat (limited to 'lib/header.c')
-rw-r--r-- | lib/header.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/header.c b/lib/header.c index 5397281f6..554db457d 100644 --- a/lib/header.c +++ b/lib/header.c @@ -412,7 +412,9 @@ int getEntry(Header h, int_32 tag, int_32 * type, void **p, int_32 * c) return 0; } *type = ntohl(index->type); - *c = ntohl(index->count); + if (c) { + *c = ntohl(index->count); + } /* Now look it up */ switch (*type) { |