AFNetworking/AFNetworking — pull request #158 by warrenm (2011-12-23 22:17:59+00:00)
Title: Fixed logic bug in appendPartWithFileURL:name:error:

When checking whether the synchronous request to read file data from disk succeeded, the error condition used is "!error", but since error is of type NSError**, this only checks that the parameter is not NULL. Instead, we should ensure that either the error we were passed is NULL, or that it is not NULL and *error was not set to a non-nil value by the request method. This commit fixes the error.