diff --git a/ChangeLog b/ChangeLog index b1ca8eede..073fd7c1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,9 @@ 2010-09-10 Riccardo Mottola - * Source/unix/GSRunLoopCtxt.m: only access array if port responds to selector, or it is not initialized. - * NSDate.m: use init return value + * Source/unix/GSRunLoopCtxt.m: only access array if port responds to selector, or it is not initialized + + * Source/NSDate.m, + * Source/NSScanner.m: use init return value 2010-09-10 Richard Frith-Macdonald diff --git a/Source/NSScanner.m b/Source/NSScanner.m index 469509bc5..a46a92fa4 100644 --- a/Source/NSScanner.m +++ b/Source/NSScanner.m @@ -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];