Merge pull request #112 from iosphere/fix-shadowed-variable
Fix warning on shadowed variable when creating zip file
This commit is contained in:
commit
a75d901a85
@ -369,8 +369,8 @@
|
|||||||
BOOL success = NO;
|
BOOL success = NO;
|
||||||
SSZipArchive *zipArchive = [[SSZipArchive alloc] initWithPath:path];
|
SSZipArchive *zipArchive = [[SSZipArchive alloc] initWithPath:path];
|
||||||
if ([zipArchive open]) {
|
if ([zipArchive open]) {
|
||||||
for (NSString *path in paths) {
|
for (NSString *filePath in paths) {
|
||||||
[zipArchive writeFile:path];
|
[zipArchive writeFile:filePath];
|
||||||
}
|
}
|
||||||
success = [zipArchive close];
|
success = [zipArchive close];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user