abuild-tar: Initialise memory before use

This commit is contained in:
Andrew Wilcox 2015-10-06 05:38:57 -05:00 committed by Timo Teräs
parent deb5b0091b
commit 34ff603758
1 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,8 @@ static int do_it(const EVP_MD *md, int cut)
size_t size, aligned_size;
int dohash = 0, r, ret = 1;
memset(&paxhdr, 0, sizeof(paxhdr));
if (md) snprintf(checksumhdr, sizeof(checksumhdr), "APK-TOOLS.checksum.%s", EVP_MD_name(md));
do {