From 7515f06b4470d1b65ef471403acc2e5571e016c7 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Tue, 22 May 2018 20:34:41 +0800 Subject: [PATCH] Minor optimize for dispatch_queue_async_safe --- SDWebImage/SDWebImageCompat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageCompat.h b/SDWebImage/SDWebImageCompat.h index ce068071..20d03262 100644 --- a/SDWebImage/SDWebImageCompat.h +++ b/SDWebImage/SDWebImageCompat.h @@ -89,7 +89,7 @@ FOUNDATION_EXPORT NSString *const SDWebImageErrorDomain; #ifndef dispatch_queue_async_safe #define dispatch_queue_async_safe(queue, block)\ - if (strcmp(dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL), dispatch_queue_get_label(queue)) == 0) {\ + if (dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL) == dispatch_queue_get_label(queue)) {\ block();\ } else {\ dispatch_async(queue, block);\