Skip to content

Commit

Permalink
Check block parameter after Facebook Infer analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-edsitech committed Jun 26, 2015
1 parent 1a30bdd commit 1ec5508
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fmdb/FMDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ - (NSError*)inSavePoint:(void (^)(BOOL *rollback))block {
return err;
}

block(&shouldRollback);
if (block)
block(&shouldRollback);

if (shouldRollback) {
// We need to rollback and release this savepoint to remove it
Expand Down Expand Up @@ -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);
}


Expand Down

0 comments on commit 1ec5508

Please sign in to comment.