Initialise targetClass to NULL to silence a static analysis issue

This commit is contained in:
Tony Arnold 2016-06-28 13:17:17 +10:00
parent 7089f6d7de
commit c50efe34c7
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ static NSMutableDictionary *forwardableSelectorsPerClass = nil;
#define CLASS_HIERARCHY_MAX_DEPTH 100
NSInteger classHierarchyDepth = 0;
Class targetClass = self;
Class targetClass = NULL;
for (classHierarchyDepth = 0, targetClass = self;
classHierarchyDepth < CLASS_HIERARCHY_MAX_DEPTH && targetClass != nil;