mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Return nil if signature is nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_4_0@14195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
522763277f
commit
a45bd7ec71
4 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-07-23 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSInvocation.m ([GSFrameInvocation
|
||||
-initWithMethodSignature:]): Return nil if signature is nil.
|
||||
* Source/GSFFCallInvocation.m (-initWithMethodSignature:): Idem.
|
||||
* Source/GSFFIInvocation (-initWithMethodSignature:): Idem.
|
||||
|
||||
2002-07-20 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSDecimal.m: ifdef for compiling on Darwin (report
|
||||
|
|
|
@ -469,6 +469,11 @@ static IMP gs_objc_msg_forward (SEL sel)
|
|||
*/
|
||||
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature
|
||||
{
|
||||
if (aSignature == nil)
|
||||
{
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
_sig = RETAIN(aSignature);
|
||||
_numArgs = [aSignature numberOfArguments];
|
||||
_info = [aSignature methodInfo];
|
||||
|
|
|
@ -204,6 +204,11 @@ static IMP gs_objc_msg_forward (SEL sel)
|
|||
*/
|
||||
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature
|
||||
{
|
||||
if (aSignature == nil)
|
||||
{
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
_sig = RETAIN(aSignature);
|
||||
_numArgs = [aSignature numberOfArguments];
|
||||
_info = [aSignature methodInfo];
|
||||
|
|
|
@ -643,6 +643,7 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
{
|
||||
NSLog(@"Couldn't find encoding type for selector %s.",
|
||||
sel_get_name(aSelector));
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
newSig = [NSMethodSignature signatureWithObjCTypes: types];
|
||||
|
@ -809,6 +810,11 @@ _arg_addr(NSInvocation *inv, int index)
|
|||
*/
|
||||
- (id) initWithMethodSignature: (NSMethodSignature*)aSignature
|
||||
{
|
||||
if (aSignature == nil)
|
||||
{
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
_sig = RETAIN(aSignature);
|
||||
_numArgs = [aSignature numberOfArguments];
|
||||
_info = [aSignature methodInfo];
|
||||
|
|
Loading…
Reference in a new issue