Skip to content

Commit

Permalink
Fixed analyze warning
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Dec 2, 2014
1 parent 70a5e03 commit e5ccb4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Core/Source/DTZipArchive/DTZipArchiveGZip.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,11 @@ - (NSData *)uncompressZipArchiveNode:(DTZipArchiveNode *)node withError:(NSError
{
if (![self.nodes containsObject:node])
{
NSDictionary *userInfo = @{NSLocalizedDescriptionKey : @"Invalid node specified, cannot uncompress GZip file."};
*error = [[NSError alloc] initWithDomain:DTZipArchiveErrorDomain code:7 userInfo:userInfo];
if (error)
{
NSDictionary *userInfo = @{NSLocalizedDescriptionKey : @"Invalid node specified, cannot uncompress GZip file."};
*error = [[NSError alloc] initWithDomain:DTZipArchiveErrorDomain code:7 userInfo:userInfo];
}

return nil;
}
Expand Down

0 comments on commit e5ccb4a

Please sign in to comment.