From 056d1f3da496655efdc710c2b8e6c167139064f1 Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 14 Feb 2017 21:24:45 +0100 Subject: [PATCH] minor: use 2 distinct return value to avoid dead code detections --- src/opencl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opencl.c b/src/opencl.c index 70bfca2a5..d15a79fee 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -4314,9 +4314,9 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) { 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);