mirror of
https://github.com/hashcat/hashcat.git
synced 2025-08-05 13:25:39 +00:00
Initialize some variable to make scan-build happy
This commit is contained in:
parent
d315f61414
commit
2884bded32
@ -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);
|
num_elements = CEILDIV (num_elements, kernel_threads);
|
||||||
|
|
||||||
if ((hashconfig->opts_type & OPTS_TYPE_PT_BITSLICE) && (user_options->attack_mode == ATTACK_MODE_BF))
|
if ((hashconfig->opts_type & OPTS_TYPE_PT_BITSLICE) && (user_options->attack_mode == ATTACK_MODE_BF))
|
||||||
|
@ -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];
|
salt_t *salt_buf = &hashes->salts_buf[salt_pos];
|
||||||
|
|
||||||
u32 num_cracked;
|
u32 num_cracked = 0;
|
||||||
|
|
||||||
int CU_rc;
|
int CU_rc;
|
||||||
int CL_rc;
|
int CL_rc;
|
||||||
|
@ -569,7 +569,7 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param
|
|||||||
|
|
||||||
// check : check if cracked
|
// check : check if cracked
|
||||||
|
|
||||||
u32 num_cracked;
|
u32 num_cracked = 0;
|
||||||
|
|
||||||
if (device_param->is_cuda == true)
|
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)
|
if (num_cracked == 0)
|
||||||
{
|
{
|
||||||
hc_thread_mutex_lock (status_ctx->mux_display);
|
hc_thread_mutex_lock (status_ctx->mux_display);
|
||||||
|
|
||||||
if (device_param->is_opencl == true)
|
if (device_param->is_opencl == true)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "* Device #%u: ATTENTION! OpenCL kernel self-test failed.", device_param->device_id + 1);
|
event_log_error (hashcat_ctx, "* Device #%u: ATTENTION! OpenCL kernel self-test failed.", device_param->device_id + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user