1
mirror of https://github.com/hashcat/hashcat synced 2024-12-09 02:13:10 +01:00

Initialize psafe3 header even if later overwritten by fread() to make scan-build happy

This commit is contained in:
jsteube 2016-11-20 21:49:16 +01:00
parent 7388c032a8
commit 5c871d5322

View File

@ -2781,6 +2781,8 @@ int psafe3_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNU
psafe3_t in;
memset (&in, 0, sizeof (psafe3_t));
const size_t n = fread (&in, sizeof (psafe3_t), 1, fp);
fclose (fp);