use init return value

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31278 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2010-09-09 21:41:40 +00:00
parent 86c180dc79
commit 355f3a4ba4
2 changed files with 5 additions and 3 deletions

View file

@ -1146,7 +1146,7 @@ typedef GSString *ivars;
{
NSScanner *n = [[self class] allocWithZone: zone];
[n initWithString: _string];
n = [n initWithString: _string];
[n setCharactersToBeSkipped: _charactersToBeSkipped];
[n setLocale: _locale];
[n setScanLocation: _scanLocation];