Commit 34ff6037 authored by A. Wilcox's avatar A. Wilcox Committed by Timo Teräs

abuild-tar: Initialise memory before use

parent deb5b009
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment