Fixed an uninitialized-variable bug in the (admittedly-unlikely) case where somebody calls this method asking for the first zero lines. Found by the analyzer.
authorPeter Hosey <hg@boredzo.org>
Fri Oct 02 20:24:18 2009 -0700 (11 months ago)
changeset 4476236009b6a206
parent 4475c26a9f6fe0a5
child 4477c79be4ab7989
Fixed an uninitialized-variable bug in the (admittedly-unlikely) case where somebody calls this method asking for the first zero lines. Found by the analyzer.
Extras/GrowlMail/Message+GrowlMail.m
     1.1 --- a/Extras/GrowlMail/Message+GrowlMail.m	Fri Oct 02 20:21:47 2009 -0700
     1.2 +++ b/Extras/GrowlMail/Message+GrowlMail.m	Fri Oct 02 20:24:18 2009 -0700
     1.3 @@ -228,7 +228,7 @@
     1.4  
     1.5  - (void) trimStringToFirstNLines:(NSUInteger)n {
     1.6  	NSRange range;
     1.7 -	NSUInteger end;
     1.8 +	NSUInteger end = 0U;
     1.9  	NSUInteger length;
    1.10  
    1.11  	range.location = 0;