Skip to content
Snippets Groups Projects
Commit 458b8a02 authored by cramakri's avatar cramakri
Browse files

Initialize variable to nil in the entity test

SVN: 27081
parent 3ae1fb7b
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ NSManagedObjectContext* GetDatabaseManagedObjectContext(NSURL* storeURL, NSError ...@@ -59,7 +59,7 @@ NSManagedObjectContext* GetDatabaseManagedObjectContext(NSURL* storeURL, NSError
[connection release]; [connection release];
NSURL *tempDir = [NSURL fileURLWithPath: NSTemporaryDirectory()]; NSURL *tempDir = [NSURL fileURLWithPath: NSTemporaryDirectory()];
self.databaseUrl = [tempDir URLByAppendingPathComponent: @"ipad-test.db"]; self.databaseUrl = [tempDir URLByAppendingPathComponent: @"ipad-test.db"];
NSError* error; NSError* error = nil;
self.moc = GetDatabaseManagedObjectContext(self.databaseUrl, &error); self.moc = GetDatabaseManagedObjectContext(self.databaseUrl, &error);
STAssertNil(error, @"DB file could not be created:\n%@", error); STAssertNil(error, @"DB file could not be created:\n%@", error);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment