From ec6e3d6f542276b83868d236f837207667de50e4 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Sun, 24 Jan 2010 06:53:49 +0000 Subject: [PATCH] the -init method should return nil git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29381 72102866-910b-0410-8b05-ffd578937521 --- Source/NSException.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/NSException.m b/Source/NSException.m index 31e921d06..624cfa0de 100644 --- a/Source/NSException.m +++ b/Source/NSException.m @@ -297,11 +297,11 @@ callUncaughtHandler(id value) _e_stack = [GSStackTraceClass new]; return self; } + - (id) init { - return [self initWithName: NSGenericException - reason: @"No reason" - userInfo: nil]; + [self release]; // OSX behavior + return nil; } - (NSArray*) callStackReturnAddresses