Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 940fe99

Browse files
committed
Initialize a NSString *
There may be additional control logic necessary here for the case that `self.usernames.count == 0`, but this will at least satisfy the Static Analyzer. Here's what I saw in Xcode 7.3 beta 1: http://cl.ly/3C333Q1g1L1s/Screen%20Shot%202016-01-13%20at%201.59.47%20PM.png
1 parent c510909 commit 940fe99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/SLKTypingIndicatorView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ - (NSAttributedString *)attributedString
125125
return nil;
126126
}
127127

128-
NSString *text = nil;
128+
NSString *text = @"";
129129
NSString *firstObject = [self.usernames firstObject];
130130
NSString *lastObject = [self.usernames lastObject];
131131

@@ -352,4 +352,4 @@ - (void)dealloc
352352
_timers = nil;
353353
}
354354

355-
@end
355+
@end

0 commit comments

Comments
 (0)