summaryrefslogtreecommitdiff
path: root/lib/rpmlead.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-04-29 22:43:01 +0000
committerjbj <devnull@localhost>2001-04-29 22:43:01 +0000
commit81ac89f4e6f176f9095e73b34d94d4ccf12da237 (patch)
tree85ef09056d85954efdee78fa6875611d460b538d /lib/rpmlead.c
parentc83cfd5ed5b9637a090e57bef5aca5d5b96d00f4 (diff)
downloadrpm-81ac89f4e6f176f9095e73b34d94d4ccf12da237.tar.gz
rpm-81ac89f4e6f176f9095e73b34d94d4ccf12da237.tar.bz2
rpm-81ac89f4e6f176f9095e73b34d94d4ccf12da237.zip
- more boring lclint annotations and fiddles.
CVS patchset: 4725 CVS date: 2001/04/29 22:43:01
Diffstat (limited to 'lib/rpmlead.c')
-rw-r--r--lib/rpmlead.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmlead.c b/lib/rpmlead.c
index 9b262e10f..366b05be1 100644
--- a/lib/rpmlead.c
+++ b/lib/rpmlead.c
@@ -44,6 +44,7 @@ int writeLead(FD_t fd, struct rpmlead *lead)
int readLead(FD_t fd, struct rpmlead *lead)
{
+ memset(lead, 0, sizeof(*lead));
if (timedRead(fd, (char *)lead, sizeof(*lead)) != sizeof(*lead)) {
rpmError(RPMERR_READ, _("read failed: %s (%d)\n"), Fstrerror(fd),
errno);