Initialise a variable with the value that's actually used first, not a placeholder value.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32057 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-02-11 11:35:04 +00:00
parent 1974ee0308
commit 1ca0c59b61

View file

@ -1356,7 +1356,7 @@ static BOOL snuggleStart(NSString *t)
CREATE_AUTORELEASE_POOL(arp); CREATE_AUTORELEASE_POOL(arp);
#endif #endif
unsigned l = [str length]; unsigned l = [str length];
NSRange r = NSMakeRange(0, l); NSRange r = [str rangeOfString: @"<example"];
unsigned i = 0; unsigned i = 0;
NSArray *a; NSArray *a;
@ -1364,7 +1364,6 @@ static BOOL snuggleStart(NSString *t)
* Split out <example>...</example> sequences and output them literally. * Split out <example>...</example> sequences and output them literally.
* All other text has reformatting applied as necessary. * All other text has reformatting applied as necessary.
*/ */
r = [str rangeOfString: @"<example"];
while (r.length > 0) while (r.length > 0)
{ {
NSString *tmp; NSString *tmp;