diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-06 17:14:35 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-06 17:14:35 +0200 |
commit | 90fedd6e46208b51acfe80c7de0bca8f3e45bb8d (patch) | |
tree | 50a26637f6bdb3000623a7ff6c616bec28fd22fe /MLKRoot.m | |
parent | a4dc2ef855a0513db78ce00338602fbdad9c33da (diff) |
Use NS_VALUERETURN properly.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r-- | MLKRoot.m | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -77,17 +77,23 @@ static id stringify (id thing) NSMutableString *methodName; NSArray *result; SEL selector; + BOOL nothing_found; + + nothing_found = NO; NS_DURING { if ([sys findSymbol:[name name]] != name) - return nil; + NS_VALUERETURN (nil, NSArray *); } NS_HANDLER { - NS_VALUERETURN (nil, NSArray *); + nothing_found = YES; } - NS_ENDHANDLER + NS_ENDHANDLER; + + if (nothing_found) + return nil; invocation = [NSInvocation invocationWithMethodSignature:signature]; |