summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2015-10-06 05:38:57 -0500
committerTimo Teräs <timo.teras@iki.fi>2015-10-06 14:00:55 +0300
commit34ff6037585727b347ee5f0f5da244449a35837d (patch)
treef993bb67e2357987e11f1835c42a9c029804c45f
parentdeb5b0091b54513ba6c02687884a88ea1b725aef (diff)
downloadabuild-34ff6037585727b347ee5f0f5da244449a35837d.tar.bz2
abuild-34ff6037585727b347ee5f0f5da244449a35837d.tar.xz
abuild-tar: Initialise memory before use
-rw-r--r--abuild-tar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/abuild-tar.c b/abuild-tar.c
index 2f29d30..d8de043 100644
--- a/abuild-tar.c
+++ b/abuild-tar.c
@@ -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 {