From dabf6466f11e5936ee871b8b3dd573020a142586 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 19 Aug 2010 22:10:52 +0000 Subject: Fix various potential memory leaks and general warnings as a result of static analysis. --- Source/SPDatabaseCopy.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/SPDatabaseCopy.m') diff --git a/Source/SPDatabaseCopy.m b/Source/SPDatabaseCopy.m index 8942dee1..cd7d1584 100644 --- a/Source/SPDatabaseCopy.m +++ b/Source/SPDatabaseCopy.m @@ -47,11 +47,11 @@ - (BOOL)copyDatabaseFrom:(NSString *)sourceDatabaseName to:(NSString *)targetDatabaseName withContent:(BOOL)copyWithContent { - SPDatabaseInfo *databaseInfo = [self getDBInfoObject]; + NSArray *tables = nil; - // Check, whether the source database exists and the target database doesn't. - NSArray *tables = [NSArray array]; + SPDatabaseInfo *databaseInfo = [self getDBInfoObject]; + // Check, whether the source database exists and the target database doesn't. BOOL sourceExists = [databaseInfo databaseExists:sourceDatabaseName]; BOOL targetExists = [databaseInfo databaseExists:targetDatabaseName]; -- cgit v1.2.3