From 371d6406ea2139e97f45094f7373aaabcababb35 Mon Sep 17 00:00:00 2001 From: Oliver Eikemeier Date: Wed, 21 Mar 2012 00:17:59 +0100 Subject: [PATCH] merged e87b3c1 --- AFNetworking/AFJSONUtilities.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AFNetworking/AFJSONUtilities.m b/AFNetworking/AFJSONUtilities.m index 820d362..3377fc4 100644 --- a/AFNetworking/AFJSONUtilities.m +++ b/AFNetworking/AFJSONUtilities.m @@ -148,7 +148,7 @@ id AFJSONDecode(NSData *data, NSError **error) { NSUInteger parseOptionFlags = 0; [invocation setArgument:&parseOptionFlags atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation if (error != NULL) { - [invocation setArgument:error atIndex:3]; + [invocation setArgument:&error atIndex:3]; } [invocation invoke]; @@ -172,7 +172,7 @@ id AFJSONDecode(NSData *data, NSError **error) { NSUInteger yajlParserOptions = 0; [invocation setArgument:&yajlParserOptions atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation if (error != NULL) { - [invocation setArgument:error atIndex:3]; + [invocation setArgument:&error atIndex:3]; } [invocation invoke]; @@ -185,7 +185,7 @@ id AFJSONDecode(NSData *data, NSError **error) { [invocation setArgument:&data atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation if (error != NULL) { - [invocation setArgument:error atIndex:3]; + [invocation setArgument:&error atIndex:3]; } [invocation setArgument:&nullOption atIndex:4]; @@ -203,7 +203,7 @@ id AFJSONDecode(NSData *data, NSError **error) { NSUInteger readOptions = 0; [invocation setArgument:&readOptions atIndex:3]; if (error != NULL) { - [invocation setArgument:error atIndex:4]; + [invocation setArgument:&error atIndex:4]; } [invocation invoke];