mirror of
https://github.com/hashcat/hashcat.git
synced 2025-03-05 17:46:06 +00:00
Initialize psafe3 header even if later overwritten by fread() to make scan-build happy
This commit is contained in:
parent
7388c032a8
commit
5c871d5322
@ -2781,6 +2781,8 @@ int psafe3_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNU
|
|||||||
|
|
||||||
psafe3_t in;
|
psafe3_t in;
|
||||||
|
|
||||||
|
memset (&in, 0, sizeof (psafe3_t));
|
||||||
|
|
||||||
const size_t n = fread (&in, sizeof (psafe3_t), 1, fp);
|
const size_t n = fread (&in, sizeof (psafe3_t), 1, fp);
|
||||||
|
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user