diff options
author | Michael Vogt <mvo@debian.org> | 2013-08-05 22:40:28 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-08-05 22:40:28 +0200 |
commit | 4ccd3b3ce69d6a6598e1773689a44fdec78a85cc (patch) | |
tree | 3cc7a8172109c69fa6fdd10296932a6aa152f595 /apt-pkg/contrib/sha2.h | |
parent | 163dc55bd6891008adcdf6d683a94e890a00f8c7 (diff) | |
download | apt-4ccd3b3ce69d6a6598e1773689a44fdec78a85cc.tar.gz |
fix some unitialized data members
Diffstat (limited to 'apt-pkg/contrib/sha2.h')
-rw-r--r-- | apt-pkg/contrib/sha2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/contrib/sha2.h b/apt-pkg/contrib/sha2.h index 51c921dbd..8e0c99a1b 100644 --- a/apt-pkg/contrib/sha2.h +++ b/apt-pkg/contrib/sha2.h @@ -60,10 +60,11 @@ class SHA256Summation : public SHA2SummationBase res.Set(Sum); return res; }; - SHA256Summation() + SHA256Summation() { SHA256_Init(&ctx); Done = false; + memset(&Sum, 0, sizeof(Sum)); }; }; @@ -96,6 +97,7 @@ class SHA512Summation : public SHA2SummationBase { SHA512_Init(&ctx); Done = false; + memset(&Sum, 0, sizeof(Sum)); }; }; |