mirror of
https://github.com/darlinghq/fmdb.git
synced 2024-11-27 06:20:34 +00:00
Check block parameter after Facebook Infer analyze
This commit is contained in:
parent
1a30bddb8b
commit
1ec55086cd
@ -1315,7 +1315,8 @@ static NSString *FMDBEscapeSavePointName(NSString *savepointName) {
|
||||
return err;
|
||||
}
|
||||
|
||||
block(&shouldRollback);
|
||||
if (block)
|
||||
block(&shouldRollback);
|
||||
|
||||
if (shouldRollback) {
|
||||
// We need to rollback and release this savepoint to remove it
|
||||
@ -1356,7 +1357,8 @@ void FMDBBlockSQLiteCallBackFunction(sqlite3_context *context, int argc, sqlite3
|
||||
#else
|
||||
void (^block)(sqlite3_context *context, int argc, sqlite3_value **argv) = (__bridge id)sqlite3_user_data(context);
|
||||
#endif
|
||||
block(context, argc, argv);
|
||||
if (block)
|
||||
block(context, argc, argv);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user