mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
c8c35018b6
commit
d935a085f8
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue