Merge pull request #3277 from smoe/cppcheck_realloc

cppcheck: avoid chance to read from uninitialised data
This commit is contained in:
Vitalii Koshura 2021-01-11 19:47:24 +01:00 committed by GitHub
commit 53a77fa1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ int check_file_signature(
char clear_buf[MD5_LEN];
int n, retval;
DATA_BLOCK clear_signature;
clear_buf[0]=0;
n = (int)strlen(md5_buf);
clear_signature.data = (unsigned char*)clear_buf;