initialized error to nil

This commit is contained in:
Kurry
2015-09-10 18:34:45 -04:00
parent b7f1856d36
commit 9765a37f97

View File

@@ -627,7 +627,7 @@ typedef void (^PINRemoteImageManagerDataCompletion)(NSData *data, NSError *error
if (completion && ((image || animatedImage) || (url == nil))) {
//If we're on the main thread, special case to call completion immediately
NSError *error;
NSError *error = nil;
if (!url) {
error = [NSError errorWithDomain:NSURLErrorDomain
code:NSURLErrorUnsupportedURL