From 790b2c14549077ace772839ad9242282dff7f589 Mon Sep 17 00:00:00 2001 From: Robert Cain Date: Thu, 24 Aug 2017 17:45:08 +0100 Subject: [PATCH] Fixes Analyze: Local variable conflicts with outer success variable --- SSZipArchive/SSZipArchive.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSZipArchive/SSZipArchive.m b/SSZipArchive/SSZipArchive.m index 1921b15..fe06dc7 100755 --- a/SSZipArchive/SSZipArchive.m +++ b/SSZipArchive/SSZipArchive.m @@ -491,8 +491,8 @@ NSString *const SSZipArchiveErrorDomain = @"SSZipArchiveErrorDomain"; if ([fileManager fileExistsAtPath:fullPath]) { NSError *error = nil; - BOOL success = [fileManager removeItemAtPath:fullPath error:&error]; - if (!success) + BOOL removeSuccess = [fileManager removeItemAtPath:fullPath error:&error]; + if (!removeSuccess) { NSString *message = [NSString stringWithFormat:@"Failed to delete existing symbolic link at \"%@\"", error.localizedDescription]; NSLog(@"[SSZipArchive] %@", message);