mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 02:01:03 +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
1974ee0308
commit
1ca0c59b61
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue