Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ccgus/fmdb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ryan <robert.ryan@mindspring.com>2020-05-08 05:25:38 +0300
committerRobert Ryan <robert.ryan@mindspring.com>2020-05-08 05:25:38 +0300
commit713da2d17464707d916529c98f601cbb3384f80e (patch)
tree535b66af5efc89ca05580e215888367d86b46a6e
parentabbaa01a1ebd95cfbde10cda1b2e6bf51c032108 (diff)
Uninitialized object in manual reference counting
-rwxr-xr-xsrc/fmdb/FMDatabaseQueue.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fmdb/FMDatabaseQueue.m b/src/fmdb/FMDatabaseQueue.m
index 2799c70..ceab539 100755
--- a/src/fmdb/FMDatabaseQueue.m
+++ b/src/fmdb/FMDatabaseQueue.m
@@ -301,17 +301,13 @@ static const void * const kDispatchQueueSpecificKey = &kDispatchQueueSpecificKey
- (BOOL)checkpoint:(FMDBCheckpointMode)mode name:(NSString *)name logFrameCount:(int * _Nullable)logFrameCount checkpointCount:(int * _Nullable)checkpointCount error:(NSError * __autoreleasing _Nullable * _Nullable)error
{
__block BOOL result;
- __block NSError *blockError;
-
+
FMDBRetain(self);
dispatch_sync(_queue, ^() {
- result = [self.database checkpoint:mode name:name logFrameCount:logFrameCount checkpointCount:checkpointCount error:&blockError];
+ result = [self.database checkpoint:mode name:name logFrameCount:logFrameCount checkpointCount:checkpointCount error:error];
});
FMDBRelease(self);
- if (error) {
- *error = blockError;
- }
return result;
}