1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00

Initialize some variable to make scan-build happy

This commit is contained in:
Jens Steube 2019-11-26 10:55:57 +01:00
parent d315f61414
commit 2884bded32
3 changed files with 5 additions and 2 deletions

View File

@ -3394,6 +3394,8 @@ int run_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, con
}
}
if (kernel_threads == 0) kernel_threads = 1;
num_elements = CEILDIV (num_elements, kernel_threads);
if ((hashconfig->opts_type & OPTS_TYPE_PT_BITSLICE) && (user_options->attack_mode == ATTACK_MODE_BF))

View File

@ -470,7 +470,7 @@ int check_cracked (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
salt_t *salt_buf = &hashes->salts_buf[salt_pos];
u32 num_cracked;
u32 num_cracked = 0;
int CU_rc;
int CL_rc;

View File

@ -569,7 +569,7 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
// check : check if cracked
u32 num_cracked;
u32 num_cracked = 0;
if (device_param->is_cuda == true)
{
@ -677,6 +677,7 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
if (num_cracked == 0)
{
hc_thread_mutex_lock (status_ctx->mux_display);
if (device_param->is_opencl == true)
{
event_log_error (hashcat_ctx, "* Device #%u: ATTENTION! OpenCL kernel self-test failed.", device_param->device_id + 1);