Fix some variable initializationg warnings in older GCC

pull/1114/head
jsteube 7 years ago
parent 0a2e629f0f
commit ef004e85f0

@ -14206,10 +14206,14 @@ void seven_zip_hook_func (hc_device_param_t *device_param, hashes_t *hashes, con
// init AES
AES_KEY aes_key = { 0 };
AES_KEY aes_key;
memset (&aes_key, 0, sizeof (aes_key));
AES_set_decrypt_key (ukey, 256, &aes_key);
AES_KEY aes_key_copied;
memcpy (&aes_key_copied, &aes_key, sizeof (AES_KEY));
if (padding_check_fast == true) // use part of the data as initialization vector

@ -1565,8 +1565,11 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx)
char *outfile = outfile_ctx->filename;
hc_stat_t tmpstat_outfile = { 0 };
hc_stat_t tmpstat_hashfile = { 0 };
hc_stat_t tmpstat_outfile;
hc_stat_t tmpstat_hashfile;
memset (&tmpstat_outfile, 0, sizeof (tmpstat_outfile));
memset (&tmpstat_hashfile, 0, sizeof (tmpstat_hashfile));
int do_check = 0;

Loading…
Cancel
Save