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:
David Chisnall 2011-02-11 11:35:04 +00:00
parent c8c35018b6
commit d935a085f8

View file

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