From 49b44da5889820cb5992a3b8ef599bea0032fc9c Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sun, 27 Nov 2016 21:40:01 +0100 Subject: [PATCH] Request build log only if size > 1 (v2) --- src/opencl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/opencl.c b/src/opencl.c index 1c5168b59..136097c6e 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -3761,7 +3761,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) //if (CL_rc == -1) return -1; #if defined (DEBUG) - if ((build_log_size != 0) || (CL_rc == -1)) + if ((build_log_size > 1) || (CL_rc == -1)) #else if (CL_rc == -1) #endif @@ -3863,7 +3863,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) //if (CL_rc == -1) return -1; #if defined (DEBUG) - if ((build_log_size != 0) || (CL_rc == -1)) + if ((build_log_size > 1) || (CL_rc == -1)) #else if (CL_rc == -1) #endif @@ -3967,7 +3967,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) //if (CL_rc == -1) return -1; #if defined (DEBUG) - if ((build_log_size != 0) || (CL_rc == -1)) + if ((build_log_size > 1) || (CL_rc == -1)) #else if (CL_rc == -1) #endif @@ -4109,7 +4109,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx) //if (CL_rc == -1) return -1; #if defined (DEBUG) - if ((build_log_size != 0) || (CL_rc == -1)) + if ((build_log_size > 1) || (CL_rc == -1)) #else if (CL_rc == -1) #endif