diff options
author | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-06 05:38:57 -0500 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-10-06 14:00:55 +0300 |
commit | 34ff6037585727b347ee5f0f5da244449a35837d (patch) | |
tree | f993bb67e2357987e11f1835c42a9c029804c45f /abuild-tar.c | |
parent | deb5b0091b54513ba6c02687884a88ea1b725aef (diff) | |
download | abuild-34ff6037585727b347ee5f0f5da244449a35837d.tar.gz abuild-34ff6037585727b347ee5f0f5da244449a35837d.tar.bz2 abuild-34ff6037585727b347ee5f0f5da244449a35837d.tar.xz abuild-34ff6037585727b347ee5f0f5da244449a35837d.zip |
abuild-tar: Initialise memory before use
Diffstat (limited to 'abuild-tar.c')
-rw-r--r-- | abuild-tar.c | 2 |
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 { |