1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 07:28:10 +00:00

minor: use 2 distinct return value to avoid dead code detections

This commit is contained in:
philsmd 2017-02-14 21:24:45 +01:00
parent f61788eac1
commit 056d1f3da4

View File

@ -4314,9 +4314,9 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
{ {
char *build_log = (char *) hcmalloc (build_log_size + 1); char *build_log = (char *) hcmalloc (build_log_size + 1);
CL_rc = hc_clGetProgramBuildInfo (hashcat_ctx, device_param->program_amp, device_param->device, CL_PROGRAM_BUILD_LOG, build_log_size, build_log, NULL); int CL_rc_build_info = hc_clGetProgramBuildInfo (hashcat_ctx, device_param->program_amp, device_param->device, CL_PROGRAM_BUILD_LOG, build_log_size, build_log, NULL);
if (CL_rc == -1) return -1; if (CL_rc_build_info == -1) return -1;
puts (build_log); puts (build_log);