aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseCopy.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseCopy.m')
-rw-r--r--Source/SPDatabaseCopy.m6
1 files changed, 3 insertions, 3 deletions
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];