diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-10-10 08:54:04 +0200 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-10-10 08:54:04 +0200 |
commit | f34726aa3b47c45c3a4cc28610cfcc3b9c0e475c (patch) | |
tree | 1d99244d627a8a1956aadbdf5137d733846b83c6 /src/SFileVerify.cpp | |
parent | 88b74cc6aff6df067837ded12c30fe59800a8a95 (diff) |
+ md5 initialization for error cases
Diffstat (limited to 'src/SFileVerify.cpp')
-rw-r--r-- | src/SFileVerify.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SFileVerify.cpp b/src/SFileVerify.cpp index 1354bfc..4509388 100644 --- a/src/SFileVerify.cpp +++ b/src/SFileVerify.cpp @@ -638,6 +638,9 @@ static DWORD VerifyFile( // automatically check the patched version of the file // + // Make sure the md5 is initialized + memset(md5, 0, sizeof(md5)); + // If we have to verify raw data MD5, do it before file open if(dwFlags & SFILE_VERIFY_RAW_MD5) { |