mirror of https://github.com/BOINC/boinc.git
Merge pull request #3277 from smoe/cppcheck_realloc
cppcheck: avoid chance to read from uninitialised data
This commit is contained in:
commit
53a77fa1c7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue